|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Operator>
org.xcmis.search.model.constraint.Operator
public enum Operator
Comparison operator.
| Enum Constant Summary | |
|---|---|
EQUAL_TO
|
|
GREATER_THAN
|
|
GREATER_THAN_OR_EQUAL_TO
|
|
LESS_THAN
|
|
LESS_THAN_OR_EQUAL_TO
|
|
LIKE
|
|
NOT_EQUAL_TO
|
|
| Field Summary | |
|---|---|
static Operator[] |
ALL
|
| Method Summary | |
|---|---|
static Operator |
forSymbol(String symbol)
Attempt to find the Operator given a symbol. |
Operator |
getReverse()
Get the equivalent operator if the operands are to be reversed. |
String |
getSymbol()
Get the symbol for this operator. |
boolean |
isRangeOperator()
Determine whether this operator is one that is used to define a range of values: <, >,
<=, or >=
. |
String |
toString()
|
static Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Operator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Operator EQUAL_TO
public static final Operator GREATER_THAN
public static final Operator GREATER_THAN_OR_EQUAL_TO
public static final Operator LESS_THAN
public static final Operator LESS_THAN_OR_EQUAL_TO
public static final Operator LIKE
public static final Operator NOT_EQUAL_TO
| Field Detail |
|---|
public static final Operator[] ALL
| Method Detail |
|---|
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic Operator getReverse()
public String getSymbol()
public boolean isRangeOperator()
<, >,
<=, or >=
.
public String toString()
toString in class Enum<Operator>Enum.toString()public static Operator forSymbol(String symbol)
symbol - the symbol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||