Class ComparatorHashableMultiKey
java.lang.Object
com.espertech.esper.common.internal.util.ComparatorHashableMultiKey
- All Implemented Interfaces:
Comparator<HashableMultiKey>
public final class ComparatorHashableMultiKey
extends Object
implements Comparator<HashableMultiKey>
A comparator on multikeys. The multikeys must contain the same number of values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
compare
(HashableMultiKey firstValues, HashableMultiKey secondValues) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ComparatorHashableMultiKey
public ComparatorHashableMultiKey(boolean[] isDescendingValues) Ctor.- Parameters:
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.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<HashableMultiKey>
-