Package org.planit.utils.unit
Enum Units
- java.lang.Object
-
- java.lang.Enum<Units>
-
- org.planit.utils.unit.Units
-
- All Implemented Interfaces:
Serializable
,Comparable<Units>
public enum Units extends Enum<Units>
Enumeration of possible units- Author:
- gman6028, markr
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HOUR
KM
KM_HOUR
KM_MINUTE
KM_SECOND
METER
METER_HOUR
METER_MINUTE
METER_SECOND
MINUTE
NONE
SECOND
SRS
VEH_HOUR
VEH_KM
VEH_METER
VEH_MINUTE
VEH_SECOND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
static Units
valueOf(String name)
Returns the enum constant of this type with the specified name.static Units[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VEH_KM
public static final Units VEH_KM
-
VEH_METER
public static final Units VEH_METER
-
NONE
public static final Units NONE
-
VEH_HOUR
public static final Units VEH_HOUR
-
VEH_SECOND
public static final Units VEH_SECOND
-
VEH_MINUTE
public static final Units VEH_MINUTE
-
KM_HOUR
public static final Units KM_HOUR
-
KM_MINUTE
public static final Units KM_MINUTE
-
KM_SECOND
public static final Units KM_SECOND
-
METER_SECOND
public static final Units METER_SECOND
-
METER_MINUTE
public static final Units METER_MINUTE
-
METER_HOUR
public static final Units METER_HOUR
-
HOUR
public static final Units HOUR
-
MINUTE
public static final Units MINUTE
-
SECOND
public static final Units SECOND
-
KM
public static final Units KM
-
METER
public static final Units METER
-
SRS
public static final Units SRS
-
-
Method Detail
-
values
public static Units[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Units c : Units.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Units valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
-