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

java.lang.Object
  extended by PIP.Collections.Map.MapValueComparator<K,V>
All Implemented Interfaces:
java.util.Comparator<java.util.Map.Entry<K,V>>

public class MapValueComparator<K,V>
extends java.lang.Object
implements java.util.Comparator<java.util.Map.Entry<K,V>>

Just a useful class to compare the Values of a Map


Constructor Summary
MapValueComparator(java.util.Comparator 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

MapValueComparator

public MapValueComparator(java.util.Comparator 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>>