public static enum Direction.Type extends Enum<Direction.Type> implements Iterable<Direction>, Predicate<Direction>
Enum Constant and Description |
---|
HORIZONTAL |
VERTICAL |
Modifier and Type | Field and Description |
---|---|
private Direction.Axis[] |
axisArray |
private Direction[] |
facingArray |
Modifier and Type | Method and Description |
---|---|
Iterator<Direction> |
iterator() |
Direction |
random(Random random) |
Stream<Direction> |
stream() |
boolean |
test(Direction direction) |
static Direction.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
forEach, spliterator
public static final Direction.Type HORIZONTAL
public static final Direction.Type VERTICAL
private final Direction[] facingArray
private final Direction.Axis[] axisArray
public static Direction.Type[] values()
for (Direction.Type c : Direction.Type.values()) System.out.println(c);
public static Direction.Type 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 null