| Package | Description |
|---|---|
| tech.units.indriya.format |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleUnitFormat.ASCIIFormat
This class represents the ASCII format.
|
protected static class |
SimpleUnitFormat.DefaultFormat
Deprecated.
internal class, that will be made private soon, please extend either SimpleUnitFormat or AbstractUnitFormat
|
| Modifier and Type | Method and Description |
|---|---|
static SimpleUnitFormat |
SimpleUnitFormat.getInstance()
Returns the globally shared unit format instance (used by
AbstractUnit.parse() and
AbstractUnit.toString()). |
static SimpleUnitFormat |
SimpleUnitFormat.getInstance(SimpleUnitFormat.Flavor flavor)
Returns the
SimpleUnitFormat in the desired SimpleUnitFormat.Flavor |
static SimpleUnitFormat |
SimpleUnitFormat.getNewInstance()
Similar to
getInstance(), but returns a new, non-shared unit format instance,
instead of a shared singleton instance. |
static SimpleUnitFormat |
SimpleUnitFormat.getNewInstance(SimpleUnitFormat.Flavor flavor)
Similar to
getInstance(Flavor), but returns a new SimpleUnitFormat instance in the desired
SimpleUnitFormat.Flavor, instead of a shared singleton instance. |
Copyright © 2005–2022 Units of Measurement project. All rights reserved.