public enum Direction extends Enum<Direction>
direction
property of a DirectedSymbol
.Enum Constant and Description |
---|
ACTION
Indicates that the symbol was sent from LEIA to its environment.
|
RESPONSE
Indicates that the symbol was received by LEIA from its environment.
|
Modifier and Type | Method and Description |
---|---|
char |
toChar()
Returns the -- unique -- character that corresponds to this direction.
|
static Direction |
valueOf(char character)
Returns the direction constant that corresponds to the given character.
|
static Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction ACTION
public static final Direction RESPONSE
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 nullpublic char toChar()
public static Direction valueOf(char character)
toChar()
.character
- The character value to look upIllegalArgumentException
- If no direction constant corresponds to the given characterCopyright © 2013. All Rights Reserved.