public enum ScaleUnits extends Enum<ScaleUnits>
Enum Constant and Description |
---|
UNIT_g |
UNIT_kg |
UNIT_lbozd |
UNIT_lbozf |
Modifier and Type | Method and Description |
---|---|
String |
getString() |
int |
getValue() |
static ScaleUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScaleUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScaleUnits UNIT_kg
public static final ScaleUnits UNIT_lbozd
public static final ScaleUnits UNIT_g
public static final ScaleUnits UNIT_lbozf
public static ScaleUnits[] values()
for (ScaleUnits c : ScaleUnits.values()) System.out.println(c);
public static ScaleUnits 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 int getValue()
public String getString()
Copyright © 2017 StarPhoenix Media. All rights reserved.