public enum FlowSegmentSpeedUnit extends java.lang.Enum<FlowSegmentSpeedUnit>
Enum Constant and Description |
---|
KMPH
Defines the speed unit as kilometers per hour.
|
MPH
Defines the speed unit as miles per hour.
|
Modifier and Type | Method and Description |
---|---|
static FlowSegmentSpeedUnit |
fromInt(int value)
Static method used to search if the passed value is a valid speed unit type and returns
FlowSegmentSpeedUnit . |
int |
getValue()
Getter used to retrieve the current type of speed unit.
|
static FlowSegmentSpeedUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlowSegmentSpeedUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowSegmentSpeedUnit KMPH
public static final FlowSegmentSpeedUnit MPH
public static FlowSegmentSpeedUnit[] values()
for (FlowSegmentSpeedUnit c : FlowSegmentSpeedUnit.values()) System.out.println(c);
public static FlowSegmentSpeedUnit 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 int getValue()
fromInt(int)
.@NonNull public static FlowSegmentSpeedUnit fromInt(int value)
FlowSegmentSpeedUnit
.
If the value passed is invalid, then IllegalArgumentException
is thrown.value
- An integer to be searched.