public interface UnitFormatService
This interface represent the service to obtain UnitFormat
instances.
Modifier and Type | Method and Description |
---|---|
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("UCUM")
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.Copyright © 2014–2015 Jean-Marie Dautelle, Werner Keil, V2COM. All rights reserved.