net.esper.util
Class MultiKeyComparator
java.lang.Object
net.esper.util.MultiKeyComparator
- All Implemented Interfaces:
- Comparator<MultiKeyUntyped>
public final class MultiKeyComparator
- extends Object
- implements Comparator<MultiKeyUntyped>
A comparator on multikeys. The multikeys must contain the same
number of values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiKeyComparator
public MultiKeyComparator(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.
compare
public final int compare(MultiKeyUntyped firstValues,
MultiKeyUntyped secondValues)
- Specified by:
compare
in interface Comparator<MultiKeyUntyped>