public enum PoleIndicator extends Enum<PoleIndicator> implements Enumeration
Enum Constant and Description |
---|
NEITHER
Indicates neither pole.
|
NORTH
Indicates the northern pole.
|
SOUTH
Indicates the southern pole.
|
Modifier and Type | Method and Description |
---|---|
static PoleIndicator |
getDefault()
Get the enum constant that is considered to be the default.
|
static PoleIndicator |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static PoleIndicator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PoleIndicator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PoleIndicator SOUTH
public static final PoleIndicator NEITHER
public static final PoleIndicator NORTH
public static PoleIndicator[] values()
for (PoleIndicator c : PoleIndicator.values()) System.out.println(c);
public static PoleIndicator 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static PoleIndicator getFromValue(int value)
value
- a numeric value.@Nonnull public static PoleIndicator getDefault()