public interface KeyComparator<K> extends Comparator<K>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(K x,
K y)
Compare two keys for equality.
|
int |
hash(K k)
Get the hash code of a key.
|
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Copyright © 2016 Oracle Corporation. All rights reserved.