public static enum Compass.Point extends java.lang.Enum<Compass.Point>
Modifier and Type | Method and Description |
---|---|
static Compass.Point |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Compass.Point[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compass.Point N
public static final Compass.Point NE
public static final Compass.Point E
public static final Compass.Point SE
public static final Compass.Point S
public static final Compass.Point SW
public static final Compass.Point W
public static final Compass.Point NW
public static Compass.Point[] values()
for (Compass.Point c : Compass.Point.values()) System.out.println(c);
public static Compass.Point 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 null