Package com.groiss.ds
Class PairComparator<K,V>
java.lang.Object
com.groiss.ds.PairComparator<K,V>
- All Implemented Interfaces:
Serializable
,Comparator<KeyValuePair<K,
V>>
public class PairComparator<K,V>
extends Object
implements Comparator<KeyValuePair<K,V>>, Serializable
Use this comparator to sort Persistent objects or other KeyValuePairs.
The compare method compares the values using string compare ignoring case
- See Also:
-
Constructor Summary
-
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PairComparator
public PairComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<K>
-