public abstract class GremlinValueComparator extends Object implements Comparator<Object>
Modifier and Type | Class and Description |
---|---|
static class |
GremlinValueComparator.Type
The typespace.
|
Modifier and Type | Field and Description |
---|---|
static GremlinValueComparator |
COMPARABILITY
Comparability has very similar semantics to orderability with the following exceptions:
1.
|
static GremlinValueComparator |
ORDERABILITY
Orderability comparator allows for a total order across all types (no type error exceptions).
|
Modifier and Type | Method and Description |
---|---|
protected Comparator |
comparator(GremlinValueComparator.Type type) |
abstract int |
compare(Object f,
Object s)
Compare(a,b) is defined differently for Comparablity vs.
|
abstract boolean |
equals(Object f,
Object s)
Equals(a,b) is defined differently for Comparablity (equality) vs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final GremlinValueComparator ORDERABILITY
public static final GremlinValueComparator COMPARABILITY
protected Comparator comparator(GremlinValueComparator.Type type)
public abstract int compare(Object f, Object s)
compare
in interface Comparator<Object>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.