UnitFormat and QuantityFormat.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | FormatService.FormatType
The type of format, either a |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: list of available formats, never null.the typeFormatTypeGets a list with available format names of a given type for this format service. |
| public QuantityFormat | Returns: the defaultQuantityFormat implementation.Returns the default quantity format. |
| public QuantityFormat | Returns: the corresponding quantity format.the name of the format. name)Returns the quantity format having the specified name or |
| public UnitFormat | |
| public UnitFormat | Returns: the corresponding unit format.the name of the format. name)Returns the unit format having the specified name or |
| public UnitFormat | Returns: the corresponding unit format.the name of the format. name, String any arbitrary value used to indicate a variation of a variant)UnitFormat.Returns the unit format having the specified name or |
| getAvailableFormatNames | back to summary |
|---|---|
| public Set Gets a list with available format names of a given type for this format service.
| |
| getQuantityFormat | back to summary |
|---|---|
| public QuantityFormat getQuantityFormat() Returns the default quantity format.
It is up to implementations what to consider a suitable default. For some (locale-sensitive) implementations it may be a quantity format based on
| |
| getQuantityFormat | back to summary |
|---|---|
| public QuantityFormat getQuantityFormat(String name) Returns the quantity format having the specified name or
| |
| getUnitFormat | back to summary |
|---|---|
| public UnitFormat getUnitFormat() Returns the default unit format.
It is up to implementations what to consider a suitable default. For some (locale-sensitive) implementations it may be a unit format based on
| |
| getUnitFormat | back to summary |
|---|---|
| public UnitFormat getUnitFormat(String name) Returns the unit format having the specified name or
| |
| getUnitFormat | back to summary |
|---|---|
| public UnitFormat getUnitFormat(String name, String variant) Returns the unit format having the specified name or If no variant is applicable, the
| |
UnitFormat or QuantityFormat
| Modifier and Type | Field and Description |
|---|---|
| public static final FormatService. | QUANTITY_FORMAT
Format of type |
| public static final FormatService. | UNIT_FORMAT
Format of type |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FormatService. | |
| public static FormatService. |
| QUANTITY_FORMAT | back to summary |
|---|---|
| public static final FormatService. Format of type | |
| UNIT_FORMAT | back to summary |
|---|---|
| public static final FormatService. Format of type | |
| FormatType | back to summary |
|---|---|
| private FormatType() | |
| valueOf | back to summary |
|---|---|
| public static FormatService. | |
| values | back to summary |
|---|---|
| public static FormatService. | |