public final class ComparatorHashableMultiKey extends Object implements Comparator<HashableMultiKey>
Constructor and Description |
---|
ComparatorHashableMultiKey(boolean[] isDescendingValues)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(HashableMultiKey firstValues,
HashableMultiKey secondValues) |
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 ComparatorHashableMultiKey(boolean[] isDescendingValues)
isDescendingValues
- - each value is true if the corresponding (same index)
entry in the multi-keys is to be sorted in descending order. The multikeys
to be compared must have the same number of values as this array.public final int compare(HashableMultiKey firstValues, HashableMultiKey secondValues)
compare
in interface Comparator<HashableMultiKey>
Copyright © 2005–2018. All rights reserved.