public class MapValueComparator<K> extends Object implements Comparator<K>
Constructor and Description |
---|
MapValueComparator(Map<K,Comparable> base) |
MapValueComparator(Map<K,Comparable> base,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
int |
compare(K a,
K b) |
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 MapValueComparator(Map<K,Comparable> base)
public MapValueComparator(Map<K,Comparable> base, boolean ascending)
public int compare(K a, K b)
compare
in interface Comparator<K>
Copyright © 2018. All rights reserved.