public interface UnitFormatService
This interface represent the service to obtain UnitFormat
instances.
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableFormatNames()
Gets a list with available format names for this format service.
|
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.getDefault()
while others may return getUnitFormat("Simple")
or getUnitFormat("ISO")
UnitFormat
implementation.UnitFormat getUnitFormat(String name)
null
if none.
For example getUnitFormat("UCUM")
to return a UCUM specific UnitFormat
implementation.name
- the name of the format.Set<String> getAvailableFormatNames()
Copyright © 2014–2015 Jean-Marie Dautelle, Werner Keil, V2COM. All rights reserved.