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

    Fields
    Modifier and Type
    Field
    Description
    static 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>
    Volume
    static 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>
    Length
    static final javax.measure.Unit<javax.measure.quantity.Pressure>
    Additionally defined units to be used in openHAB
    static 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>
    Area
    static final javax.measure.Unit<javax.measure.quantity.Length>
     

    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:
    • 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_MERCURY
      Additionally 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> INCH
      Length
    • 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_INCH
      Area
    • 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_INCH
      Volume
    • 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

      public static final javax.measure.Unit<VolumetricFlowRate> GALLON_PER_MINUTE
    • GRAIN_PER_CUBICFOOT

      public static final javax.measure.Unit<Density> 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

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