@JsType(namespace="xgl.calc") public static enum Calc.Operation extends Enum<Calc.Operation>
Enum Constant and Description |
---|
ADDITION |
DIVISION |
MULTIPLICATION |
SUBTRACTION |
Modifier and Type | Method and Description |
---|---|
static Calc.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Calc.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Calc.Operation ADDITION
public static final Calc.Operation SUBTRACTION
public static final Calc.Operation MULTIPLICATION
public static final Calc.Operation DIVISION
public static Calc.Operation[] values()
for (Calc.Operation c : Calc.Operation.values()) System.out.println(c);
public static Calc.Operation 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 Xalys. All rights reserved.