| Class | Description |
|---|---|
| AbstractQuantityFormat |
This class provides the interface for formatting and parsing
quantities. |
| AbstractUnitFormat |
This class provides the interface for formatting and parsing
units. |
| DefaultFormatService |
Default format service.
|
| EBNFUnitFormat |
This class represents the local neutral format.
|
| LocalUnitFormat |
This class represents the local sensitive format.
|
| NumberDelimiterQuantityFormat | |
| NumberDelimiterQuantityFormat.Builder |
A fluent Builder to easily create new instances of
NumberDelimiterQuantityFormat. |
| SimpleQuantityFormat |
A simple implementation of QuantityFormat
The following pattern letters are defined: Chart shows pattern letters, date/time component, presentation, and examples. Letter Quantity Component Presentation Examples n
Numeric value
Number
27
u
Unit
Text
m
~
Mixed radix
Text
1 m; 27 cm
Pattern letters are usually repeated, as their number determines the
exact presentation:
Text:
For formatting, if the number of pattern letters is 4 or more,
the full form is used; otherwise a short or abbreviated form
is used if available. |
| SimpleUnitFormat |
This class implements the
UnitFormat interface for formatting and parsing units. |
| SymbolMap |
This class provides a set of mappings between
units and symbols (both ways), between prefixes and symbols
(both ways), and from unit converters to MetricPrefix (one way). |
| Token |
Describes the input token stream.
|
| Enum | Description |
|---|---|
| FormatBehavior |
Defines different ways of formatting.
|
| SimpleUnitFormat.Flavor |
Flavor of this format
|
| UnitStyle |
Defines the different variants of unit representation.
|
| Exception | Description |
|---|---|
| TokenException |
This exception is thrown when token errors are encountered.
|
| Error | Description |
|---|---|
| TokenMgrError |
Token Manager Error.
|
Copyright © 2005–2023 Units of Measurement project. All rights reserved.