Enum Constant and Description |
---|
NONE |
Modifier and Type | Method and Description |
---|---|
Units |
createUnitsFromName(java.lang.String unitsName)
Create an object of this type that matches the units name (ignoring case).
|
java.util.List<java.lang.String> |
getNames()
Suitable for constructing a javax.swing.JComboBox, for user selection.
|
java.lang.String |
getSymbol() |
static NoUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NoUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoUnits NONE
public static NoUnits[] values()
for (NoUnits c : NoUnits.values()) System.out.println(c);
public static NoUnits 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 Units createUnitsFromName(java.lang.String unitsName)
createUnitsFromName
in interface Units