K
- the type of the keyV
- the type of the valuepublic static class ParameterSetTagger.KeyEntryComparator<K extends Comparable<K>,V> extends Object implements Comparator<Map.Entry<K,V>>
Map.Entry
that sorts by the key of the Map.Entry
.
This class allows, for instance, to sort the Parameter
in a ParameterSetTagger
by their tags.Constructor and Description |
---|
KeyEntryComparator()
Creates a
Comparator that only compares the keys of Map.Entry s. |
Modifier and Type | Method and Description |
---|---|
int |
compare(Map.Entry<K,V> o1,
Map.Entry<K,V> 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 KeyEntryComparator()
Comparator
that only compares the keys of Map.Entry
s.