public enum FlowSegmentSpeedUnit extends java.lang.Enum<FlowSegmentSpeedUnit>
| Enum Constant and Description |
|---|
KMPH
Defines speed unit as kilometers per hour.
|
MPH
Defines speed unit as miles per hour.
|
| Modifier and Type | Method and Description |
|---|---|
static FlowSegmentSpeedUnit |
fromInt(int value)
Static method used to search if passed value is valid speed unit type and return
FlowSegmentSpeedUnit. |
int |
getValue()
Getter used for retrieving 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 value passed is invalid then IllegalArgumentException is thrown.value - integer to be searched.