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