public static enum SpeedType.Units extends java.lang.Enum<SpeedType.Units>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static SpeedType.Units |
parse(java.lang.String name)
This will parse the units, tests more cases than
valueOf(String)
and always return a value (defaults to . |
java.lang.String |
toString() |
static SpeedType.Units |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpeedType.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpeedType.Units MPS
public static final SpeedType.Units Knots
public static final SpeedType.Units KPH
public static final SpeedType.Units MPH
public static final SpeedType.Units RPM
public static final SpeedType.Units Percentage
public static SpeedType.Units[] values()
for (SpeedType.Units c : SpeedType.Units.values()) System.out.println(c);
public static SpeedType.Units 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 java.lang.String toString()
toString
in class java.lang.Enum<SpeedType.Units>
public static SpeedType.Units parse(java.lang.String name)
valueOf(String)
and always return a value (defaults to .name
- Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.