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

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    static javax.measure.spi.SystemOfUnits
    Returns the unique instance of this class.
     

    Methods inherited from class tech.units.indriya.AbstractSystemOfUnits

    getUnit, getUnit, getUnit, getUnit, getUnits, getUnits

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MEASUREMENT_SYSTEM_NAME

      public static final String 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

      public String getName()
      Specified by:
      getName in interface tech.uom.lib.common.function.Nameable
      Specified by:
      getName in interface javax.measure.spi.SystemOfUnits