public final class ValueComparator extends Object implements Comparator<Value>, TernaryComparator<Value>
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Value v1,
Value v2) |
boolean |
equals(Object obj) |
int |
hashCode() |
Comparison |
ternaryCompare(Value v1,
Value v2)
Should return a negative integer if o1 is smaller than o2,
a positive integer if o1 is bigger than o2,
0 if o1 and o2 are equal, and
null if they are not comparable. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Value v1, Value v2)
compare in interface Comparator<Value>public Comparison ternaryCompare(Value v1, Value v2)
TernaryComparatornull if they are not comparable.ternaryCompare in interface TernaryComparator<Value>public boolean equals(Object obj)
equals in interface Comparator<Value>equals in class ObjectCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.