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 |
---|
RankEntryComparator()
Creates a
Comparator that only compares the ranks of Map.Entry s 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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public RankEntryComparator()
Comparator
that only compares the ranks of Map.Entry
s 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>>>