public static enum CompassPoint.Cardinal extends java.lang.Enum<CompassPoint.Cardinal>
Enum Constant and Description |
---|
E
East.
|
N
North.
|
S
South.
|
W
West.
|
Modifier and Type | Method and Description |
---|---|
CompassPoint.Cardinal |
nextClockwise()
Returns the next cardinal point in the clockwise direction.
|
CompassPoint.Cardinal |
nextCounterClockwise()
Returns the next cardinal point in the counter-clockwise direction.
|
static CompassPoint.Cardinal |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompassPoint.Cardinal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompassPoint.Cardinal N
public static final CompassPoint.Cardinal E
public static final CompassPoint.Cardinal S
public static final CompassPoint.Cardinal W
public static CompassPoint.Cardinal[] values()
for (CompassPoint.Cardinal c : CompassPoint.Cardinal.values()) System.out.println(c);
public static CompassPoint.Cardinal 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 nullpublic CompassPoint.Cardinal nextClockwise()
public CompassPoint.Cardinal nextCounterClockwise()
Copyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.