Serialized Form
-
Package tech.uom.seshat
-
Class AbstractConverter
class AbstractConverter extends Object implements Serializable- serialVersionUID:
- -8480235641759297444L
-
Class QuantityFormat
class QuantityFormat extends Format implements Serializable- serialVersionUID:
- 1014042719969477503L
-
Serialized Fields
-
numberFormat
NumberFormat numberFormat
The format for parsing and formatting the number part. -
unitFormat
UnitFormat unitFormat
The format for parsing and formatting the unit of measurement part.
-
-
Class UnitFormat
class UnitFormat extends Format implements Serializable- serialVersionUID:
- -3064428584419360693L
-
Serialized Fields
-
labelToUnit
Map<String,
Unit<?>> labelToUnit Units associated to a given label (in addition to the system-wideUnitRegistry). This map is the converse ofUnitFormat.unitToLabel. TheUnitinstances may differ from the ones specified by user sinceAbstractUnit.symbolmay have been set to the label specified by the user. The labels may contain some characters normally not allowed in unit symbols, like white spaces.- See Also:
-
locale
Locale locale
The locale specified at construction time or modified byUnitFormat.setLocale(Locale).- See Also:
-
style
UnitFormat.Style style
Whether thisUnitFormatshould format long names like "metre" or use unit symbols.- See Also:
-
unitToLabel
Map<Unit<?>,
String> unitToLabel Symbols or names to use for formatting units in replacement to the default unit symbols or names. TheUnitinstances are the ones specified by user in calls toUnitFormat.label(Unit, String).- See Also:
-
-