|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Direction>
net.sf.marineapi.nmea.util.Direction
public enum Direction
Defines the relative directions, e.g. "left" and "right".
Enum Constant Summary | |
---|---|
LEFT
Left |
|
RIGHT
Right |
Method Summary | |
---|---|
char |
toChar()
Returns the corresponding char constant. |
static Direction |
valueOf(char c)
Get the enum corresponding to specified char. |
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Direction LEFT
public static final Direction RIGHT
Method Detail |
---|
public static final 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 namepublic char toChar()
public static Direction valueOf(char c)
c
- Char indicator for Direction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |