public static enum CompassPoint.MainWind extends java.lang.Enum<CompassPoint.MainWind>
Enum Constant and Description |
---|
C
Center.
|
E
East.
|
N
North.
|
NE
Northeast.
|
NW
Northwest.
|
S
South.
|
SE
Southeast.
|
SW
Southwest.
|
W
West.
|
Modifier and Type | Method and Description |
---|---|
CompassPoint.MainWind |
getOppositeDirection()
Returns the opposite direction.
|
boolean |
isCardinal()
Returns
true is this main wind direction is a cardinal point. |
boolean |
isOrdinal()
Returns
true is this main wind direction is an ordinal point. |
CompassPoint.Cardinal |
toCardinal()
Returns the equivalent cardinal point in the
CompassPoint.Cardinal enum. |
CompassPoint.Ordinal |
toOrdinal()
Returns the equivalent ordinal point in the
CompassPoint.Ordinal enum
(throws an IllegalArgumentException if the direction is not an ordinal point). |
static CompassPoint.MainWind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompassPoint.MainWind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompassPoint.MainWind N
public static final CompassPoint.MainWind NE
public static final CompassPoint.MainWind E
public static final CompassPoint.MainWind SE
public static final CompassPoint.MainWind S
public static final CompassPoint.MainWind SW
public static final CompassPoint.MainWind W
public static final CompassPoint.MainWind NW
public static final CompassPoint.MainWind C
public static CompassPoint.MainWind[] values()
for (CompassPoint.MainWind c : CompassPoint.MainWind.values()) System.out.println(c);
public static CompassPoint.MainWind 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.MainWind getOppositeDirection()
public boolean isOrdinal()
true
is this main wind direction is an ordinal point.true
is this main wind direction is an ordinal point.public CompassPoint.Ordinal toOrdinal()
CompassPoint.Ordinal
enum
(throws an IllegalArgumentException if the direction is not an ordinal point).CompassPoint.Ordinal
enum.public boolean isCardinal()
true
is this main wind direction is a cardinal point.true
is this main wind direction is a cardinal point.public CompassPoint.Cardinal toCardinal()
CompassPoint.Cardinal
enum.
(throws an IllegalArgumentException if the direction is not an cardinal point.)CompassPoint.Cardinal
enum.Copyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.