public enum Operator extends Enum<Operator>
IntOperation
or RelationalIntOperation
.Enum Constant and Description |
---|
ADD |
DIVIDE |
EQ |
GT |
GT_EQ |
LT |
LT_EQ |
MODULO |
MULTIPLY |
NE |
SUBTRACT |
Modifier and Type | Method and Description |
---|---|
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 LT
public static final Operator LT_EQ
public static final Operator EQ
public static final Operator GT_EQ
public static final Operator GT
public static final Operator NE
public static final Operator ADD
public static final Operator SUBTRACT
public static final Operator MULTIPLY
public static final Operator DIVIDE
public static final Operator MODULO
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 nullCopyright © 2018. All rights reserved.