public enum UnitStyle extends Enum<UnitStyle>
| Enum Constant and Description |
|---|
NAME
The unit will be rendered as its localized display name.
|
SYMBOL
The unit will be rendered as its (non localized) unit symbol.
|
| Modifier and Type | Method and Description |
|---|---|
static UnitStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitStyle NAME
Unit, the unit symbol
should be used as a fall-back.Unit.getName()public static UnitStyle[] values()
for (UnitStyle c : UnitStyle.values()) System.out.println(c);
public static UnitStyle 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 nullCopyright © 2005–2024 Units of Measurement project. All rights reserved.