public final class HashableMultiKeyCollatingComparator extends java.lang.Object implements java.util.Comparator<HashableMultiKey>, MetaDefItem, java.io.Serializable
Constructor and Description |
---|
HashableMultiKeyCollatingComparator(boolean[] isDescendingValues,
boolean[] stringTypeValues)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(HashableMultiKey firstValues,
HashableMultiKey secondValues) |
public HashableMultiKeyCollatingComparator(boolean[] isDescendingValues, boolean[] stringTypeValues)
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.stringTypeValues
- true for each string-typed columnpublic final int compare(HashableMultiKey firstValues, HashableMultiKey secondValues)
compare
in interface java.util.Comparator<HashableMultiKey>