UnitFormatService
public interface FormatService extends UnitFormatService
UnitFormat
and QuantityFormat
.Modifier and Type | Interface | Description |
---|---|---|
static class |
FormatService.FormatType |
Modifier and Type | Method | Description |
---|---|---|
Set<String> |
getAvailableFormatNames(FormatService.FormatType type) |
Gets a list with available format names of a given type for this format service.
|
QuantityFormat |
getQuantityFormat() |
Returns the default quantity format.
|
QuantityFormat |
getQuantityFormat(String name) |
Returns the quantity format having the specified name or
null if none. |
getAvailableFormatNames, getUnitFormat, getUnitFormat
QuantityFormat getQuantityFormat()
Locale.current()
while others may return getQuantityFormat("Simple")
or getQuantityFormat("ISO")
.QuantityFormat
implementation.QuantityFormat getQuantityFormat(String name)
null
if none.
For example (@code getQuantityFormat("Simple")} to return the simple QuantityFormat
implementation.name
- the name of the format.Set<String> getAvailableFormatNames(FormatService.FormatType type)
type
- the FormatService.FormatType
Copyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.