Top Description Fields Constructors Methods
tech.units.indriya.format

public final Enum UnitStyle

extends Enum<UnitStyle>
Class Inheritance

Defines the different variants of unit representation.
Author
Werner Keil
Since
1.0.1
Version
2.0, February 18, 2020

Field Summary

Modifier and TypeField and Description
public static final UnitStyle
LABEL

The unit will be rendered as its label.

public static final UnitStyle
NAME

The unit will be rendered as its name.

public static final UnitStyle
NAME_AND_SYMBOL

The unit will be rendered as its name and symbol.

public static final UnitStyle
SYMBOL

The unit will be rendered as its symbol.

public static final UnitStyle
SYMBOL_AND_LABEL

The unit will be rendered as its symbol and also labeled.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static UnitStyle
public static UnitStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

LABELback to summary
public static final UnitStyle LABEL

The unit will be rendered as its label.

See Also
javax.measure.format.UnitFormat#label()
NAMEback to summary
public static final UnitStyle NAME

The unit will be rendered as its name.

See Also
javax.measure.Unit#getName()
NAME_AND_SYMBOLback to summary
public static final UnitStyle NAME_AND_SYMBOL

The unit will be rendered as its name and symbol.

See Also
javax.measure.Unit#getName(), javax.measure.Unit#getSymbol()
SYMBOLback to summary
public static final UnitStyle SYMBOL

The unit will be rendered as its symbol.

See Also
javax.measure.Unit#getSymbol()
SYMBOL_AND_LABELback to summary
public static final UnitStyle SYMBOL_AND_LABEL

The unit will be rendered as its symbol and also labeled.

See Also
javax.measure.Unit#getSymbol(), javax.measure.format.UnitFormat#label()

Constructor Detail

UnitStyleback to summary
private UnitStyle()

Method Detail

valueOfback to summary
public static UnitStyle valueOf(String name)
valuesback to summary
public static UnitStyle[] values()