Package tech.units.indriya.format
Class DefaultFormatService
- java.lang.Object
-
- tech.units.indriya.format.DefaultFormatService
-
- All Implemented Interfaces:
FormatService,tech.uom.lib.common.function.IntPrioritySupplier
public class DefaultFormatService extends Object implements FormatService, tech.uom.lib.common.function.IntPrioritySupplier
Default format service.- Since:
- 2.0
- Version:
- 2.3, November 26, 2020
- Author:
- Werner Keil
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.measure.spi.FormatService
FormatService.FormatType
-
-
Constructor Summary
Constructors Constructor Description DefaultFormatService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAvailableFormatNames(FormatService.FormatType type)intgetPriority()QuantityFormatgetQuantityFormat()QuantityFormatgetQuantityFormat(String key)UnitFormatgetUnitFormat()UnitFormatgetUnitFormat(String key)UnitFormatgetUnitFormat(String name, String variant)
-
-
-
Constructor Detail
-
DefaultFormatService
public DefaultFormatService()
-
-
Method Detail
-
getQuantityFormat
public QuantityFormat getQuantityFormat(String key)
- Specified by:
getQuantityFormatin interfaceFormatService
-
getQuantityFormat
public QuantityFormat getQuantityFormat()
- Specified by:
getQuantityFormatin interfaceFormatService
-
getAvailableFormatNames
public Set<String> getAvailableFormatNames(FormatService.FormatType type)
- Specified by:
getAvailableFormatNamesin interfaceFormatService
-
getUnitFormat
public UnitFormat getUnitFormat(String key)
- Specified by:
getUnitFormatin interfaceFormatService
-
getUnitFormat
public UnitFormat getUnitFormat()
- Specified by:
getUnitFormatin interfaceFormatService
-
getUnitFormat
public UnitFormat getUnitFormat(String name, String variant)
- Specified by:
getUnitFormatin interfaceFormatService
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfacetech.uom.lib.common.function.IntPrioritySupplier
-
-