Enum Constant and Description |
---|
ASTEROID |
COMET |
CONSTELLATION |
GENERAL |
MOON |
PLANET |
STATIC |
SUN |
Modifier and Type | Method and Description |
---|---|
static BodyKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BodyKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BodyKind SUN
public static final BodyKind MOON
public static final BodyKind PLANET
public static final BodyKind ASTEROID
public static final BodyKind COMET
public static final BodyKind CONSTELLATION
public static final BodyKind GENERAL
public static final BodyKind STATIC
public static BodyKind[] values()
for (BodyKind c : BodyKind.values()) System.out.println(c);
public static BodyKind 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