Liferay 6.2-ce-ga5

com.liferay.util
Class PropertyComparator

java.lang.Object
  extended by com.liferay.util.PropertyComparator
All Implemented Interfaces:
Comparator<Object>

public class PropertyComparator
extends Object
implements Comparator<Object>


Constructor Summary
PropertyComparator(String propertyName)
           
PropertyComparator(String[] propertyNames)
           
PropertyComparator(String[] propertyNames, boolean ascending, boolean caseSensitive)
           
PropertyComparator(String propertyName, boolean ascending, boolean caseSensitive)
           
 
Method Summary
 int compare(Object obj1, Object obj2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

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)
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Specified by:
compare in interface Comparator<Object>

Liferay 6.2-ce-ga5