public static enum Level.Direction extends java.lang.Enum<Level.Direction>
Enum Constant and Description |
---|
DECREMENT
eq level is below the midpoint level
|
INCREMENT
eq level is above the midpoint level
|
Modifier and Type | Method and Description |
---|---|
static Level.Direction |
getDirection(int direction)
convert an integral value to its corresponding direction enum.
|
static Level.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Level.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Level.Direction DECREMENT
public static final Level.Direction INCREMENT
public static Level.Direction[] values()
for (Level.Direction c : Level.Direction.values()) System.out.println(c);
public static Level.Direction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Level.Direction getDirection(int direction) throws java.lang.IllegalArgumentException
direction
- integral value to be converted to an Direction enum.java.lang.IllegalArgumentException
- if the integral value does not correspond to a valid Direction.