Example usage for com.liferay.portal.kernel.settings ArchivedSettings getName

List of usage examples for com.liferay.portal.kernel.settings ArchivedSettings getName

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.settings ArchivedSettings getName.

Prototype

public String getName();

Source Link

Usage

From source file:com.liferay.portlet.configuration.web.internal.util.comparator.ArchivedSettingsNameComparator.java

License:Open Source License

@Override
public int compare(ArchivedSettings archivedSettings1, ArchivedSettings archivedSettings2) {

    String name1 = archivedSettings1.getName();
    String name2 = archivedSettings2.getName();

    int value = name1.compareTo(name2);

    if (_ascending) {
        return value;
    } else {/* w ww .j a v a  2s.c om*/
        return -value;
    }
}