Package org.openhab.core.library.unit
Class SIUnits
java.lang.Object
tech.units.indriya.AbstractSystemOfUnits
org.openhab.core.library.unit.SIUnits
- All Implemented Interfaces:
javax.measure.spi.SystemOfUnits
,tech.uom.lib.common.function.Nameable
@NonNullByDefault
public final class SIUnits
extends tech.units.indriya.AbstractSystemOfUnits
Delegate SI units to
Units
to hide this dependency from the rest of openHAB.
See members of Units
for a detailed description.- Author:
- Henning Treu - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from class tech.units.indriya.AbstractSystemOfUnits
tech.units.indriya.AbstractSystemOfUnits.Helper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final javax.measure.Unit<javax.measure.quantity.Temperature>
static final javax.measure.Unit<javax.measure.quantity.Volume>
static final javax.measure.Unit<javax.measure.quantity.Mass>
static final javax.measure.Unit<javax.measure.quantity.Mass>
static final javax.measure.Unit<javax.measure.quantity.Speed>
static final String
static final javax.measure.Unit<javax.measure.quantity.Length>
static final javax.measure.Unit<javax.measure.quantity.Pressure>
static final javax.measure.Unit<javax.measure.quantity.Area>
Fields inherited from class tech.units.indriya.AbstractSystemOfUnits
E, logger, quantityToUnit, units
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.measure.spi.SystemOfUnits
Returns the unique instance of this class.getName()
Methods inherited from class tech.units.indriya.AbstractSystemOfUnits
getUnit, getUnit, getUnit, getUnit, getUnits, getUnits
-
Field Details
-
MEASUREMENT_SYSTEM_NAME
- See Also:
-
CELSIUS
public static final javax.measure.Unit<javax.measure.quantity.Temperature> CELSIUS -
KILOMETRE_PER_HOUR
public static final javax.measure.Unit<javax.measure.quantity.Speed> KILOMETRE_PER_HOUR -
METRE
public static final javax.measure.Unit<javax.measure.quantity.Length> METRE -
KILOGRAM
public static final javax.measure.Unit<javax.measure.quantity.Mass> KILOGRAM -
GRAM
public static final javax.measure.Unit<javax.measure.quantity.Mass> GRAM -
SQUARE_METRE
public static final javax.measure.Unit<javax.measure.quantity.Area> SQUARE_METRE -
CUBIC_METRE
public static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_METRE -
PASCAL
public static final javax.measure.Unit<javax.measure.quantity.Pressure> PASCAL
-
-
Method Details
-
getInstance
public static javax.measure.spi.SystemOfUnits getInstance()Returns the unique instance of this class.- Returns:
- the Units instance.
-
getName
- Specified by:
getName
in interfacetech.uom.lib.common.function.Nameable
- Specified by:
getName
in interfacejavax.measure.spi.SystemOfUnits
-