public enum Operator extends Enum<Operator>
Enum Constant and Description |
---|
EQUAL_TO |
GREATER_THAN |
GREATER_THAN_OR_EQUAL_TO |
LESS_THAN |
LESS_THAN_OR_EQUAL_TO |
LIKE |
NOT_EQUAL_TO |
Modifier and Type | Method and Description |
---|---|
static Operator |
forSymbol(String symbol)
Attempt to find the Operator given a symbol.
|
boolean |
isRangeOperator()
|
Operator |
not()
Get the NOT of this operator.
|
Operator |
reverse()
Get the equivalent operator if the operands are to be reversed.
|
String |
symbol()
Get the symbol for this operator
|
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.
|
public static final Operator EQUAL_TO
public static final Operator NOT_EQUAL_TO
public static final Operator LESS_THAN
public static final Operator LESS_THAN_OR_EQUAL_TO
public static final Operator GREATER_THAN
public static final Operator GREATER_THAN_OR_EQUAL_TO
public static final Operator LIKE
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 nameNullPointerException
- if the argument is nullpublic String symbol()
public Operator reverse()
public Operator not()
public boolean isRangeOperator()
public String toString()
toString
in class Enum<Operator>
Enum.toString()
public static Operator forSymbol(String symbol)
symbol
- the symbolIllegalArgumentException
- if the symbol is nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.