Package org.openhab.core.library.unit
Class ImperialUnits
java.lang.Object
tech.units.indriya.AbstractSystemOfUnits
org.openhab.core.library.unit.ImperialUnits
- All Implemented Interfaces:
javax.measure.spi.SystemOfUnits
,tech.uom.lib.common.function.Nameable
@NonNullByDefault
public final class ImperialUnits
extends tech.units.indriya.AbstractSystemOfUnits
Imperial units used for the United States and Liberia.
- 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.Length> static final javax.measure.Unit
<javax.measure.quantity.Volume> static final javax.measure.Unit
<javax.measure.quantity.Volume> Volumestatic final javax.measure.Unit
<javax.measure.quantity.Temperature> static final javax.measure.Unit
<javax.measure.quantity.Length> static final javax.measure.Unit
<javax.measure.quantity.Length> static final javax.measure.Unit
<javax.measure.quantity.Volume> static final javax.measure.Unit
<VolumetricFlowRate> static final javax.measure.Unit
<javax.measure.quantity.Mass> static final javax.measure.Unit
<Density> static final javax.measure.Unit
<javax.measure.quantity.Length> Lengthstatic final javax.measure.Unit
<javax.measure.quantity.Pressure> Additionally defined units to be used in openHABstatic final javax.measure.Unit
<javax.measure.quantity.Length> static final String
static final javax.measure.Unit
<javax.measure.quantity.Length> static final javax.measure.Unit
<javax.measure.quantity.Speed> static final javax.measure.Unit
<javax.measure.quantity.Mass> static final javax.measure.Unit
<javax.measure.quantity.Pressure> static final javax.measure.Unit
<javax.measure.quantity.Area> static final javax.measure.Unit
<javax.measure.quantity.Area> Areastatic final javax.measure.Unit
<javax.measure.quantity.Length> 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:
-
POUND
public static final javax.measure.Unit<javax.measure.quantity.Mass> POUND -
GRAIN
public static final javax.measure.Unit<javax.measure.quantity.Mass> GRAIN -
INCH_OF_MERCURY
public static final javax.measure.Unit<javax.measure.quantity.Pressure> INCH_OF_MERCURYAdditionally defined units to be used in openHAB -
POUND_FORCE_SQUARE_INCH
public static final javax.measure.Unit<javax.measure.quantity.Pressure> POUND_FORCE_SQUARE_INCH -
FAHRENHEIT
public static final javax.measure.Unit<javax.measure.quantity.Temperature> FAHRENHEIT -
MILES_PER_HOUR
public static final javax.measure.Unit<javax.measure.quantity.Speed> MILES_PER_HOUR -
INCH
public static final javax.measure.Unit<javax.measure.quantity.Length> INCHLength -
FOOT
public static final javax.measure.Unit<javax.measure.quantity.Length> FOOT -
YARD
public static final javax.measure.Unit<javax.measure.quantity.Length> YARD -
CHAIN
public static final javax.measure.Unit<javax.measure.quantity.Length> CHAIN -
FURLONG
public static final javax.measure.Unit<javax.measure.quantity.Length> FURLONG -
MILE
public static final javax.measure.Unit<javax.measure.quantity.Length> MILE -
LEAGUE
public static final javax.measure.Unit<javax.measure.quantity.Length> LEAGUE -
SQUARE_INCH
public static final javax.measure.Unit<javax.measure.quantity.Area> SQUARE_INCHArea -
SQUARE_FOOT
public static final javax.measure.Unit<javax.measure.quantity.Area> SQUARE_FOOT -
CUBIC_INCH
public static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_INCHVolume -
CUBIC_FOOT
public static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_FOOT -
GALLON_LIQUID_US
public static final javax.measure.Unit<javax.measure.quantity.Volume> GALLON_LIQUID_US -
GALLON_PER_MINUTE
-
GRAIN_PER_CUBICFOOT
-
-
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
-