PIP.Collections.Map
Class MapKeyComparator<K,V>
java.lang.Object
PIP.Collections.Map.MapKeyComparator<K,V>
- All Implemented Interfaces:
- java.util.Comparator<java.util.Map.Entry<K,V>>
public class MapKeyComparator<K,V>
- extends java.lang.Object
- implements java.util.Comparator<java.util.Map.Entry<K,V>>
Just a useful class to compare the Keys of a Map
|
Method Summary |
int |
compare(java.util.Map.Entry<K,V> entry1,
java.util.Map.Entry<K,V> entry2)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
MapKeyComparator
public MapKeyComparator(java.util.Comparator<K> c)
compare
public int compare(java.util.Map.Entry<K,V> entry1,
java.util.Map.Entry<K,V> entry2)
- Specified by:
compare in interface java.util.Comparator<java.util.Map.Entry<K,V>>