Serializable
, Comparable<Base>
public enum Base extends Enum<Base>
on how this is used.
Enum Constant | Description |
---|---|
DISTANCE |
|
MASS |
|
NONE |
|
ROTATION |
|
TEMPERATURE |
|
TIME |
Modifier and Type | Method | Description |
---|---|---|
static Base |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Base[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Base NONE
public static final Base DISTANCE
public static final Base TIME
public static final Base MASS
public static final Base ROTATION
public static final Base TEMPERATURE
public static Base[] values()
for (Base c : Base.values()) System.out.println(c);
public static Base valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.