
public class ODefaultComparator extends Object implements Comparator<Object>
Comparable.compareTo(Object) methods for getting results for all Comparable types.
Otherwise result of Comparator that returned from OComparatorFactory will be used.
The special case is null values. Null is treated as smallest value against other values. If both arguments are null they are
treated as equal.| Modifier and Type | Field and Description |
|---|---|
static ODefaultComparator |
INSTANCE |
| Constructor and Description |
|---|
ODefaultComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object objectOne,
Object objectTwo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final ODefaultComparator INSTANCE
public int compare(Object objectOne, Object objectTwo)
compare in interface Comparator<Object>Copyright © 2009–2025 OrientDB. All rights reserved.