public enum Compare extends Enum<Compare> implements Predicate
| Enum Constant and Description |
|---|
EQUAL |
GREATER_THAN |
GREATER_THAN_EQUAL |
LESS_THAN |
LESS_THAN_EQUAL |
NOT_EQUAL |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Constructs the string representation of the Compare.
|
boolean |
evaluate(Object first,
Object second)
If the underlying graph does not support the push-down predicate, then an in-memory evaluation can be done.
|
static Compare |
fromString(String c)
Constructs a Compare from its string representation.
|
Compare |
opposite() |
static Compare |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compare EQUAL
public static final Compare NOT_EQUAL
public static final Compare GREATER_THAN
public static final Compare GREATER_THAN_EQUAL
public static final Compare LESS_THAN
public static final Compare LESS_THAN_EQUAL
public static Compare[] values()
for (Compare c : Compare.values()) System.out.println(c);
public static Compare 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 evaluate(Object first, Object second)
Predicatepublic Compare opposite()
public String asString()
Copyright © 2010-2014. All Rights Reserved.