Interface KeyComparator<K>
- Type Parameters:
K
- Key's type
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
StringIgnoreCaseKeyComparator
A key comparator.
- Author:
- Paul Sandoz
-
Method Summary
-
Method Details
-
equals
Compare two keys for equality.- Parameters:
x
- the first keyy
- the second key- Returns:
- true if the keys are equal.
-
hash
Get the hash code of a key.- Parameters:
k
- the key.- Returns:
- the hash code of the key.
-