public enum RelativeCompass extends java.lang.Enum<RelativeCompass> implements Compass
Enum Constant and Description |
---|
AFTER
Constant indicating the "after" relative compass-point.
|
BEFORE
Constant indicating the "before" relative compass-point.
|
END
Constant indicating the "end" relative compass-point.
|
START
Constant indicating the "start" relative compass-point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAbsolute()
Indicates whether this compass direction is an absolute direction.
|
boolean |
isRelative()
Indicates whether this compass direction is a relative direction.
|
static RelativeCompass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelativeCompass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeCompass START
public static final RelativeCompass END
public static final RelativeCompass BEFORE
public static final RelativeCompass AFTER
public static RelativeCompass[] values()
for (RelativeCompass c : RelativeCompass.values()) System.out.println(c);
public static RelativeCompass 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 boolean isRelative()
Compass
isRelative
in interface Compass
public boolean isAbsolute()
Compass
isAbsolute
in interface Compass
This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.