T
- generic typepublic static class EntryComparator.Key<T extends Comparable> extends Object implements Comparator<Map.Entry<T,?>>
Map.Entry
s by their keysConstructor and Description |
---|
Key() |
Modifier and Type | Method and Description |
---|---|
EntryComparator.Key<T> |
asc() |
int |
compare(Map.Entry<T,?> o1,
Map.Entry<T,?> o2) |
EntryComparator.Key<T> |
desc() |
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 int compare(Map.Entry<T,?> o1, Map.Entry<T,?> o2)
compare
in interface Comparator<Map.Entry<T extends Comparable,?>>
public EntryComparator.Key<T> asc()
public EntryComparator.Key<T> desc()
Copyright © 2015. All Rights Reserved.