Package tech.units.indriya.format
Class DefaultFormatService
- java.lang.Object
-
- tech.units.indriya.format.DefaultUnitFormatService
-
- tech.units.indriya.format.DefaultFormatService
-
- All Implemented Interfaces:
javax.measure.spi.FormatService,javax.measure.spi.UnitFormatService,tech.uom.lib.common.function.IntPrioritySupplier
public class DefaultFormatService extends DefaultUnitFormatService implements javax.measure.spi.FormatService
Default format service.- Since:
- 2.0
- Version:
- 1.0, March 19, 2019
- Author:
- Werner Keil
-
-
Field Summary
-
Fields inherited from class tech.units.indriya.format.DefaultUnitFormatService
unitFormats
-
-
Constructor Summary
Constructors Constructor Description DefaultFormatService()
-
Method Summary
Modifier and Type Method Description Set<String>getAvailableFormatNames(javax.measure.spi.FormatService.FormatType type)javax.measure.format.QuantityFormatgetQuantityFormat()javax.measure.format.QuantityFormatgetQuantityFormat(String name)-
Methods inherited from class tech.units.indriya.format.DefaultUnitFormatService
getAvailableFormatNames, getPriority, getUnitFormat, getUnitFormat
-
-
-
-
Constructor Detail
-
DefaultFormatService
public DefaultFormatService()
-
-
Method Detail
-
getQuantityFormat
public javax.measure.format.QuantityFormat getQuantityFormat(String name)
- Specified by:
getQuantityFormatin interfacejavax.measure.spi.FormatService
-
getQuantityFormat
public javax.measure.format.QuantityFormat getQuantityFormat()
- Specified by:
getQuantityFormatin interfacejavax.measure.spi.FormatService
-
getAvailableFormatNames
public Set<String> getAvailableFormatNames(javax.measure.spi.FormatService.FormatType type)
- Specified by:
getAvailableFormatNamesin interfacejavax.measure.spi.FormatService
-
-