K - the type of the keyV - the type of the valuepublic class ParameterSetTagger.RankEntryComparator<K,V> extends Object implements Comparator<Map.Entry<K,ComparableElement<V,Integer>>>
Map.Entry where value is a ComparableElement with weight Integer.
This class allows, for instance, to sort the Parameter in a ParameterSetTagger as given in the constructor.| Constructor and Description |
|---|
ParameterSetTagger.RankEntryComparator()
Creates a
Comparator that only compares the ranks of Map.Entrys where the rank is determined by the ParameterSet.parameters. |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Map.Entry<K,ComparableElement<V,Integer>> o1,
Map.Entry<K,ComparableElement<V,Integer>> o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ParameterSetTagger.RankEntryComparator()
Comparator that only compares the ranks of Map.Entrys where the rank is determined by the ParameterSet.parameters.public int compare(Map.Entry<K,ComparableElement<V,Integer>> o1, Map.Entry<K,ComparableElement<V,Integer>> o2)
compare in interface Comparator<Map.Entry<K,ComparableElement<V,Integer>>>