FormatService
public interface UnitFormatService
UnitFormat
instances.FormatService
in a future version.Modifier and Type | Method | Description |
---|---|---|
Set<String> |
getAvailableFormatNames() |
Deprecated.
use in FormatService instead.
|
UnitFormat |
getUnitFormat() |
Returns the default unit format.
|
UnitFormat |
getUnitFormat(String name) |
Returns the unit format having the specified name or
null if none. |
UnitFormat getUnitFormat()
Locale.current()
while others may return getUnitFormat("Simple")
or getUnitFormat("ISO")
.UnitFormat
implementation.UnitFormat getUnitFormat(String name)
null
if none.
For example getUnitFormat("Simple")
to return a simple UnitFormat
implementation.name
- the name of the format.Set<String> getAvailableFormatNames()
Copyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.