Class DefaultFormatService
- java.lang.Object
-
- tech.units.indriya.internal.format.DefaultUnitFormatService
-
- tech.units.indriya.internal.format.DefaultFormatService
-
- All Implemented Interfaces:
javax.measure.spi.UnitFormatService
,tech.uom.lib.common.function.IntPrioritySupplier
public class DefaultFormatService extends DefaultUnitFormatService implements javax.measure.spi.UnitFormatService, tech.uom.lib.common.function.IntPrioritySupplier
Default format service.- Since:
- 2.0
- Version:
- 0.6, April 6, 2018
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DEFAULT_FORMAT
(package private) static int
PRIO
private java.util.Map<java.lang.String,QuantityFormat>
quantityFormats
-
Fields inherited from class tech.units.indriya.internal.format.DefaultUnitFormatService
unitFormats
-
-
Constructor Summary
Constructors Constructor Description DefaultFormatService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
-
Methods inherited from class tech.units.indriya.internal.format.DefaultUnitFormatService
getAvailableFormatNames, getUnitFormat, getUnitFormat
-
-
-
-
Field Detail
-
PRIO
static final int PRIO
- See Also:
- Constant Field Values
-
DEFAULT_FORMAT
private static final java.lang.String DEFAULT_FORMAT
- See Also:
- Constant Field Values
-
quantityFormats
private final java.util.Map<java.lang.String,QuantityFormat> quantityFormats
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfacetech.uom.lib.common.function.IntPrioritySupplier
- Overrides:
getPriority
in classDefaultUnitFormatService
-
-