com.liferay.portal.kernel.util
Class ObjectValuePairComparator<K,V>

java.lang.Object
  extended by com.liferay.portal.kernel.util.ObjectValuePairComparator<K,V>
All Implemented Interfaces:
java.util.Comparator<ObjectValuePair<K,V>>

public class ObjectValuePairComparator<K,V>
extends java.lang.Object
implements java.util.Comparator<ObjectValuePair<K,V>>

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ObjectValuePairComparator()
           
ObjectValuePairComparator(boolean ascending)
           
ObjectValuePairComparator(boolean byKey, boolean ascending)
           
 
Method Summary
 int compare(ObjectValuePair<K,V> ovp1, ObjectValuePair<K,V> ovp2)
           
 
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

ObjectValuePairComparator

public ObjectValuePairComparator()

ObjectValuePairComparator

public ObjectValuePairComparator(boolean ascending)

ObjectValuePairComparator

public ObjectValuePairComparator(boolean byKey,
                                 boolean ascending)
Method Detail

compare

public int compare(ObjectValuePair<K,V> ovp1,
                   ObjectValuePair<K,V> ovp2)
Specified by:
compare in interface java.util.Comparator<ObjectValuePair<K,V>>