public static enum UnitFormat.Style extends Enum<UnitFormat.Style>
Units.CUBIC_METRE
units can be formatted in the following ways:
Defined in the sis-utility
module
Enum Constant and Description |
---|
NAME
Format unit symbols as localized long names if known, or Unicode symbols otherwise.
|
SYMBOL
Format unit symbols using Unicode characters.
|
UCUM
Format unit symbols using a syntax close to the Unified Code for Units of Measure (UCUM) one.
|
Modifier and Type | Method and Description |
---|---|
static UnitFormat.Style |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitFormat.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitFormat.Style SYMBOL
This is the default style of UnitFormat
.
Unit.getSymbol()
public static final UnitFormat.Style UCUM
CharSequences.toASCII(CharSequence)
public static final UnitFormat.Style NAME
Unit.getName()
public static UnitFormat.Style[] values()
for (UnitFormat.Style c : UnitFormat.Style.values()) System.out.println(c);
public static UnitFormat.Style 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 © 2010–2017 The Apache Software Foundation. All rights reserved.