com.liferay.portlet.documentlibrary.util.comparator
Class FolderNameComparator
java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator
com.liferay.portlet.documentlibrary.util.comparator.FolderNameComparator
- All Implemented Interfaces:
- Serializable, Comparator
public class FolderNameComparator
- extends OrderByComparator
- See Also:
- Serialized Form
ORDER_BY_ASC
public static final String ORDER_BY_ASC
- See Also:
- Constant Field Values
ORDER_BY_DESC
public static final String ORDER_BY_DESC
- See Also:
- Constant Field Values
ORDER_BY_FIELDS
public static final String[] ORDER_BY_FIELDS
FolderNameComparator
public FolderNameComparator()
FolderNameComparator
public FolderNameComparator(boolean ascending)
compare
public int compare(Object folder1,
Object folder2)
- Specified by:
compare
in interface Comparator
- Specified by:
compare
in class OrderByComparator
getOrderBy
public String getOrderBy()
- Overrides:
getOrderBy
in class OrderByComparator
getOrderByFields
public String[] getOrderByFields()
- Overrides:
getOrderByFields
in class OrderByComparator
isAscending
public boolean isAscending()
- Overrides:
isAscending
in class OrderByComparator