public enum Cmp extends Enum<Cmp> implements TitanPredicate
TitanPredicate.Converter| 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, valueOfisValidCondition, isValidValueType, negate, testand, orpublic 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()
TitanPredicateEQUAL and NOT_EQUAL are negatives of each other.hasNegation in interface TitanPredicatepublic boolean isQNF()
TitanPredicateisQNF in interface TitanPredicateCopyright © 2012–2015. All rights reserved.