|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.MultiKeyComparator
public final class MultiKeyComparator
A comparator on multikeys. The multikeys must contain the same number of values.
Constructor Summary | |
---|---|
MultiKeyComparator(boolean[] isDescendingValues)
Ctor. |
Method Summary | |
---|---|
int |
compare(MultiKeyUntyped firstValues,
MultiKeyUntyped secondValues)
|
protected static int |
compareValues(java.lang.Object valueOne,
java.lang.Object valueTwo,
boolean isDescending)
Compares two nullable values. |
static int |
compareValuesCollated(java.lang.Object valueOne,
java.lang.Object valueTwo,
boolean isDescending,
java.text.Collator collator)
Compares two nullable values using Collator, for use with string-typed values. |
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 |
Constructor Detail |
---|
public MultiKeyComparator(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.Method Detail |
---|
public final int compare(MultiKeyUntyped firstValues, MultiKeyUntyped secondValues)
compare
in interface java.util.Comparator<MultiKeyUntyped>
protected static int compareValues(java.lang.Object valueOne, java.lang.Object valueTwo, boolean isDescending)
valueOne
- first value to comparevalueTwo
- second value to compareisDescending
- true for descending
public static int compareValuesCollated(java.lang.Object valueOne, java.lang.Object valueTwo, boolean isDescending, java.text.Collator collator)
valueOne
- first value to comparevalueTwo
- second value to compareisDescending
- true for descendingcollator
- the Collator for comparing
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |