Package io.dialob.program.expr.arith
Enum Reducers.Int
- java.lang.Object
-
- java.lang.Enum<Reducers.Int>
-
- io.dialob.program.expr.arith.Reducers.Int
-
- All Implemented Interfaces:
Reducer<Integer>,Serializable,Comparable<Reducers.Int>
- Enclosing class:
- Reducers
public static enum Reducers.Int extends Enum<Reducers.Int> implements Reducer<Integer>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueTypegetValueType()static Reducers.IntvalueOf(String name)Returns the enum constant of this type with the specified name.static Reducers.Int[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final Reducers.Int ADD
-
SUB
public static final Reducers.Int SUB
-
DIV
public static final Reducers.Int DIV
-
MULT
public static final Reducers.Int MULT
-
-
Method Detail
-
values
public static Reducers.Int[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Reducers.Int c : Reducers.Int.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Reducers.Int valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValueType
@Nonnull public ValueType getValueType()
- Specified by:
getValueTypein interfaceReducer<Integer>
-
-