| Modifier and Type | Field and Description |
|---|---|
| private final Functions. |
| Access | Constructor and Description |
|---|---|
| public | KeyComparator(Functions.
the key function to use for comparing objects. May not be keyFunctionnull
|
| Modifier and Type | Method and Description |
|---|---|
| public int |
| keyFunction | back to summary |
|---|---|
| private final Functions. | |
| KeyComparator | back to summary |
|---|---|
| public KeyComparator(Functions. | |
| compare | back to summary |
|---|---|
| public int compare(T a, T b) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |