|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CompassPoint>
net.sf.marineapi.nmea.util.CompassPoint
public enum CompassPoint
Defines the supported compass and relative directions.
Enum Constant Summary | |
---|---|
EAST
East |
|
NORTH
North |
|
SOUTH
South |
|
WEST
West |
Method Summary | |
---|---|
char |
toChar()
Returns the corresponding char constant. |
static CompassPoint |
valueOf(char c)
Get the enum corresponding to specified char. |
static CompassPoint |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CompassPoint[] |
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 CompassPoint NORTH
public static final CompassPoint EAST
public static final CompassPoint SOUTH
public static final CompassPoint WEST
Method Detail |
---|
public static final CompassPoint[] values()
for(CompassPoint c : CompassPoint.values()) System.out.println(c);
public static CompassPoint 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 CompassPoint 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 |