PIP.Collections.Map
Class MapKeyComparator<K,V>

java.lang.Object
  extended by 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


Constructor Summary
MapKeyComparator(java.util.Comparator<K> c)
           
 
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
 

Constructor Detail

MapKeyComparator

public MapKeyComparator(java.util.Comparator<K> c)
Method Detail

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>>