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:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PairComparator
public PairComparator()
compare
public int compare(KeyValuePair<K,V> p1,
KeyValuePair<K,V> p2)
- Specified by:
compare in interface Comparator<KeyValuePair<K,V>>
@enterprise 8.0.10809 Copyright © 2001-2012 Groiss Informatics GmbH. All Rights Reserved.