class HashComparator extends Object implements Comparator<Hash>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static HashComparator |
_instance |
| Constructor and Description |
|---|
HashComparator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
comp(Hash l,
Hash r) |
int |
compare(Hash l,
Hash r) |
static HashComparator |
getInstance()
Thread safe, no state
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final HashComparator _instance
public int compare(Hash l, Hash r)
compare in interface Comparator<Hash>public static HashComparator getInstance()