Package tech.units.indriya.format
-
Class Summary Class Description AbstractQuantityFormat This class provides the interface for formatting and parsingquantities.AbstractUnitFormat This class provides the interface for formatting and parsingunits.DefaultFormatService Default format service.EBNFUnitFormat This class represents the local neutral format.LocalUnitFormat This class represents the locale sensitive format.NumberDelimiterQuantityFormat NumberDelimiterQuantityFormat.Builder A fluent Builder to easily create new instances ofNumberDelimiterQuantityFormat.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 ExamplesnNumeric value Number27uUnit Textm~Mixed radix Text1 m; 27cmPattern 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 theUnitFormatinterface for formatting and parsingunits.SymbolMap This class provides a set of mappings betweenunitsand symbols (both ways), betweenprefixesand symbols (both ways), and fromunit converterstoMetricPrefix(one way).Token Describes the input token stream. -
Enum Summary Enum Description FormatBehavior Defines different ways of formatting.SimpleUnitFormat.Flavor Flavor of this formatUnitStyle Defines the different variants of unit representation. -
Exception Summary Exception Description TokenException This exception is thrown when token errors are encountered. -
Error Summary Error Description TokenMgrError Token Manager Error.