public enum Cmp extends Enum<Cmp> implements JanusGraphPredicate
Enum Constant and Description |
---|
EQUAL |
GREATER_THAN |
GREATER_THAN_EQUAL |
LESS_THAN |
LESS_THAN_EQUAL |
NOT_EQUAL |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNegation()
Whether this predicate has a predicate that is semantically its negation.
|
boolean |
isQNF()
Returns true if this predicate is in query normal form.
|
static Cmp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cmp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isValidCondition, isValidValueType, negate, test
getPredicateName
and, or
public static final Cmp EQUAL
public static final Cmp NOT_EQUAL
public static final Cmp LESS_THAN
public static final Cmp LESS_THAN_EQUAL
public static final Cmp GREATER_THAN
public static final Cmp GREATER_THAN_EQUAL
public static Cmp[] values()
for (Cmp c : Cmp.values()) System.out.println(c);
public static Cmp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasNegation()
JanusGraphPredicate
EQUAL
and NOT_EQUAL
are negatives of each other.hasNegation
in interface JanusGraphPredicate
public boolean isQNF()
JanusGraphPredicate
isQNF
in interface JanusGraphPredicate
Copyright © 2012–2024. All rights reserved.