com.liferay.util
Class PropertyComparator
java.lang.Object
com.liferay.util.PropertyComparator
- All Implemented Interfaces:
- Comparator<Object>
public class PropertyComparator
- extends Object
- implements Comparator<Object>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyComparator
public PropertyComparator(String propertyName)
PropertyComparator
public PropertyComparator(String propertyName,
boolean ascending,
boolean caseSensitive)
PropertyComparator
public PropertyComparator(String[] propertyNames)
PropertyComparator
public PropertyComparator(String[] propertyNames,
boolean ascending,
boolean caseSensitive)
compare
public int compare(Object obj1,
Object obj2)
- Specified by:
compare
in interface Comparator<Object>