public enum StandardUnit extends Enum<StandardUnit>
Enum Constant and Description |
---|
mol |
percentage |
ppm |
Modifier and Type | Field and Description |
---|---|
String |
ABBREVIATION
The abbreviated name of the unit.
|
String |
FULL_NAME
The full name of the unit.
|
Modifier and Type | Method and Description |
---|---|
static StandardUnit |
getStandardUnit(String fullName)
Returns the standard unit having the given full name.
|
static StandardUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardUnit mol
public static final StandardUnit percentage
public static final StandardUnit ppm
public final String FULL_NAME
public final String ABBREVIATION
public static StandardUnit[] values()
for (StandardUnit c : StandardUnit.values()) System.out.println(c);
public static StandardUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static StandardUnit getStandardUnit(String fullName)
fullName
- the full name of interestCopyright © 2016. All rights reserved.