com.liferay.portal.kernel.util
Class KeyValuePairComparator

java.lang.Object
  extended by com.liferay.portal.kernel.util.KeyValuePairComparator
All Implemented Interfaces:
java.util.Comparator<KeyValuePair>

public class KeyValuePairComparator
extends java.lang.Object
implements java.util.Comparator<KeyValuePair>

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
KeyValuePairComparator()
           
KeyValuePairComparator(boolean asc)
           
KeyValuePairComparator(boolean byKey, boolean asc)
           
 
Method Summary
 int compare(KeyValuePair kvp1, KeyValuePair kvp2)
           
 
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

KeyValuePairComparator

public KeyValuePairComparator()

KeyValuePairComparator

public KeyValuePairComparator(boolean asc)

KeyValuePairComparator

public KeyValuePairComparator(boolean byKey,
                              boolean asc)
Method Detail

compare

public int compare(KeyValuePair kvp1,
                   KeyValuePair kvp2)
Specified by:
compare in interface java.util.Comparator<KeyValuePair>