Enum GremlinValueComparator.Type
- java.lang.Object
-
- java.lang.Enum<GremlinValueComparator.Type>
-
- org.apache.tinkerpop.gremlin.util.GremlinValueComparator.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<GremlinValueComparator.Type>
- Enclosing class:
- GremlinValueComparator
public static enum GremlinValueComparator.Type extends Enum<GremlinValueComparator.Type>
The typespace. The ordinal of the type indicates its position in cross-type ordering.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
priority()
static GremlinValueComparator.Type
type(Object o)
Lookup by instanceof semantics (not class equality).static GremlinValueComparator.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static GremlinValueComparator.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Nulltype
public static final GremlinValueComparator.Type Nulltype
-
Boolean
public static final GremlinValueComparator.Type Boolean
-
Number
public static final GremlinValueComparator.Type Number
-
Date
public static final GremlinValueComparator.Type Date
-
String
public static final GremlinValueComparator.Type String
-
UUID
public static final GremlinValueComparator.Type UUID
-
Vertex
public static final GremlinValueComparator.Type Vertex
-
Edge
public static final GremlinValueComparator.Type Edge
-
VertexProperty
public static final GremlinValueComparator.Type VertexProperty
-
Property
public static final GremlinValueComparator.Type Property
-
Path
public static final GremlinValueComparator.Type Path
-
Set
public static final GremlinValueComparator.Type Set
-
List
public static final GremlinValueComparator.Type List
-
Map
public static final GremlinValueComparator.Type Map
-
MapEntry
public static final GremlinValueComparator.Type MapEntry
-
Unknown
public static final GremlinValueComparator.Type Unknown
-
-
Method Detail
-
values
public static GremlinValueComparator.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GremlinValueComparator.Type c : GremlinValueComparator.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GremlinValueComparator.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
type
public static GremlinValueComparator.Type type(Object o)
Lookup by instanceof semantics (not class equality). Current implementation will return first enum value that matches the object's type.
-
priority
public int priority()
-
-