Class Units

java.lang.Object
tech.units.indriya.AbstractSystemOfUnits
org.openhab.core.library.unit.Units
All Implemented Interfaces:
javax.measure.spi.SystemOfUnits, tech.uom.lib.common.function.Nameable

@NonNullByDefault public final class Units extends tech.units.indriya.AbstractSystemOfUnits
Delegate common units to Units to hide this dependency from the rest of openHAB. See members of Units for a detailed description. Also: Define common additional units used in SIUnits and ImperialUnits.
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.ElectricCurrent>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricCharge>
     
    static final javax.measure.Unit<javax.measure.quantity.Pressure>
     
    static final javax.measure.Unit<javax.measure.quantity.Radioactivity>
     
    static final javax.measure.Unit<Density>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataTransferRate>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.LuminousIntensity>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricCharge>
     
    static final javax.measure.Unit<VolumetricFlowRate>
     
    static final javax.measure.Unit<VolumetricFlowRate>
     
    static final javax.measure.Unit<VolumetricFlowRate>
     
    static final javax.measure.Unit<VolumetricFlowRate>
     
    static final javax.measure.Unit<javax.measure.quantity.Time>
     
    static final javax.measure.Unit<javax.measure.quantity.Dimensionless>
     
    static final javax.measure.Unit<javax.measure.quantity.Power>
     
    static final javax.measure.Unit<javax.measure.quantity.Angle>
     
    static final javax.measure.Unit<javax.measure.quantity.AmountOfSubstance>
     
    static final javax.measure.Unit<ArealDensity>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricCapacitance>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataTransferRate>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.RadiationDoseAbsorbed>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricInductance>
     
    static final javax.measure.Unit<javax.measure.quantity.Frequency>
     
    static final javax.measure.Unit<javax.measure.quantity.Time>
     
    static final javax.measure.Unit<javax.measure.quantity.Speed>
     
    static final javax.measure.Unit<Intensity>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.CatalyticActivity>
     
    static final javax.measure.Unit<javax.measure.quantity.Temperature>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataTransferRate>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<Density>
     
    static final javax.measure.Unit<javax.measure.quantity.Power>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.Power>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.Speed>
     
    static final javax.measure.Unit<javax.measure.quantity.Volume>
     
    static final javax.measure.Unit<VolumetricFlowRate>
     
    static final javax.measure.Unit<javax.measure.quantity.LuminousFlux>
     
    static final javax.measure.Unit<javax.measure.quantity.Illuminance>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataTransferRate>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.Speed>
     
    static final javax.measure.Unit<javax.measure.quantity.Acceleration>
     
    static final javax.measure.Unit<Density>
     
    static final javax.measure.Unit<Intensity>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricCharge>
     
    static final javax.measure.Unit<javax.measure.quantity.Pressure>
     
    static final javax.measure.Unit<javax.measure.quantity.Pressure>
     
    static final javax.measure.Unit<javax.measure.quantity.Speed>
     
    static final javax.measure.Unit<javax.measure.quantity.Time>
     
    static final javax.measure.Unit<?>
     
    static final javax.measure.Unit<javax.measure.quantity.AmountOfSubstance>
     
    static final javax.measure.Unit<javax.measure.quantity.Force>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricResistance>
     
    static final javax.measure.Unit<javax.measure.quantity.Dimensionless>
     
    static final javax.measure.Unit<javax.measure.quantity.Dimensionless>
     
    static final javax.measure.Unit<javax.measure.quantity.Dimensionless>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.Dimensionless>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.Angle>
     
    static final javax.measure.Unit<javax.measure.quantity.Time>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricConductance>
     
    static final javax.measure.Unit<ElectricConductivity>
     
    static final javax.measure.Unit<javax.measure.quantity.RadiationDoseEffective>
     
    static final javax.measure.Unit<javax.measure.quantity.Acceleration>
     
    static final javax.measure.Unit<javax.measure.quantity.SolidAngle>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<DataTransferRate>
     
    static final javax.measure.Unit<DataAmount>
     
    static final javax.measure.Unit<javax.measure.quantity.MagneticFluxDensity>
     
    static final javax.measure.Unit<javax.measure.quantity.Power>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.ElectricPotential>
     
    static final javax.measure.Unit<javax.measure.quantity.Power>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.Power>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.Energy>
     
    static final javax.measure.Unit<javax.measure.quantity.MagneticFlux>
     
    static final javax.measure.Unit<javax.measure.quantity.Time>
     
    static final javax.measure.Unit<javax.measure.quantity.Time>
     

    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

    • METRE_PER_SQUARE_SECOND

      public static final javax.measure.Unit<javax.measure.quantity.Acceleration> METRE_PER_SQUARE_SECOND
    • STANDARD_GRAVITY

      public static final javax.measure.Unit<javax.measure.quantity.Acceleration> STANDARD_GRAVITY
    • MOLE

      public static final javax.measure.Unit<javax.measure.quantity.AmountOfSubstance> MOLE
    • LITRE

      public static final javax.measure.Unit<javax.measure.quantity.Volume> LITRE
    • DEUTSCHE_HAERTE

      public static final javax.measure.Unit<javax.measure.quantity.AmountOfSubstance> DEUTSCHE_HAERTE
    • DEGREE_ANGLE

      public static final javax.measure.Unit<javax.measure.quantity.Angle> DEGREE_ANGLE
    • RADIAN

      public static final javax.measure.Unit<javax.measure.quantity.Angle> RADIAN
    • DOBSON_UNIT

      public static final javax.measure.Unit<ArealDensity> DOBSON_UNIT
    • KATAL

      public static final javax.measure.Unit<javax.measure.quantity.CatalyticActivity> KATAL
    • KILOGRAM_PER_CUBICMETRE

      public static final javax.measure.Unit<Density> KILOGRAM_PER_CUBICMETRE
    • MICROGRAM_PER_CUBICMETRE

      public static final javax.measure.Unit<Density> MICROGRAM_PER_CUBICMETRE
    • ONE

      public static final javax.measure.Unit<javax.measure.quantity.Dimensionless> ONE
    • PERCENT

      public static final javax.measure.Unit<javax.measure.quantity.Dimensionless> PERCENT
    • PARTS_PER_BILLION

      public static final javax.measure.Unit<javax.measure.quantity.Dimensionless> PARTS_PER_BILLION
    • PARTS_PER_MILLION

      public static final javax.measure.Unit<javax.measure.quantity.Dimensionless> PARTS_PER_MILLION
    • DECIBEL

      public static final javax.measure.Unit<javax.measure.quantity.Dimensionless> DECIBEL
    • AMPERE

      public static final javax.measure.Unit<javax.measure.quantity.ElectricCurrent> AMPERE
    • FARAD

      public static final javax.measure.Unit<javax.measure.quantity.ElectricCapacitance> FARAD
    • COULOMB

      public static final javax.measure.Unit<javax.measure.quantity.ElectricCharge> COULOMB
    • AMPERE_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.ElectricCharge> AMPERE_HOUR
    • MILLIAMPERE_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.ElectricCharge> MILLIAMPERE_HOUR
    • SIEMENS

      public static final javax.measure.Unit<javax.measure.quantity.ElectricConductance> SIEMENS
    • SIEMENS_PER_METRE

      public static final javax.measure.Unit<ElectricConductivity> SIEMENS_PER_METRE
    • HENRY

      public static final javax.measure.Unit<javax.measure.quantity.ElectricInductance> HENRY
    • VOLT

      public static final javax.measure.Unit<javax.measure.quantity.ElectricPotential> VOLT
    • OHM

      public static final javax.measure.Unit<javax.measure.quantity.ElectricResistance> OHM
    • JOULE

      public static final javax.measure.Unit<javax.measure.quantity.Energy> JOULE
    • WATT_SECOND

      public static final javax.measure.Unit<javax.measure.quantity.Energy> WATT_SECOND
    • WATT_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Energy> WATT_HOUR
    • KILOWATT_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Energy> KILOWATT_HOUR
    • MEGAWATT_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Energy> MEGAWATT_HOUR
    • VAR

      public static final javax.measure.Unit<javax.measure.quantity.Power> VAR
    • KILOVAR

      public static final javax.measure.Unit<javax.measure.quantity.Power> KILOVAR
    • VAR_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Energy> VAR_HOUR
    • KILOVAR_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Energy> KILOVAR_HOUR
    • VOLT_AMPERE

      public static final javax.measure.Unit<javax.measure.quantity.Power> VOLT_AMPERE
    • KILOVOLT_AMPERE

      public static final javax.measure.Unit<javax.measure.quantity.Power> KILOVOLT_AMPERE
    • VOLT_AMPERE_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Energy> VOLT_AMPERE_HOUR
    • NEWTON

      public static final javax.measure.Unit<javax.measure.quantity.Force> NEWTON
    • HERTZ

      public static final javax.measure.Unit<javax.measure.quantity.Frequency> HERTZ
    • IRRADIANCE

      public static final javax.measure.Unit<Intensity> IRRADIANCE
    • MICROWATT_PER_SQUARE_CENTIMETRE

      public static final javax.measure.Unit<Intensity> MICROWATT_PER_SQUARE_CENTIMETRE
    • LUX

      public static final javax.measure.Unit<javax.measure.quantity.Illuminance> LUX
    • LUMEN

      public static final javax.measure.Unit<javax.measure.quantity.LuminousFlux> LUMEN
    • CANDELA

      public static final javax.measure.Unit<javax.measure.quantity.LuminousIntensity> CANDELA
    • WEBER

      public static final javax.measure.Unit<javax.measure.quantity.MagneticFlux> WEBER
    • TESLA

      public static final javax.measure.Unit<javax.measure.quantity.MagneticFluxDensity> TESLA
    • WATT

      public static final javax.measure.Unit<javax.measure.quantity.Power> WATT
    • DECIBEL_MILLIWATTS

      public static final javax.measure.Unit<javax.measure.quantity.Power> DECIBEL_MILLIWATTS
    • MILLIMETRE_OF_MERCURY

      public static final javax.measure.Unit<javax.measure.quantity.Pressure> MILLIMETRE_OF_MERCURY
    • BAR

      public static final javax.measure.Unit<javax.measure.quantity.Pressure> BAR
    • MILLIBAR

      public static final javax.measure.Unit<javax.measure.quantity.Pressure> MILLIBAR
    • BECQUEREL

      public static final javax.measure.Unit<javax.measure.quantity.Radioactivity> BECQUEREL
    • BECQUEREL_PER_CUBIC_METRE

      public static final javax.measure.Unit<Density> BECQUEREL_PER_CUBIC_METRE
    • GRAY

      public static final javax.measure.Unit<javax.measure.quantity.RadiationDoseAbsorbed> GRAY
    • SIEVERT

      public static final javax.measure.Unit<javax.measure.quantity.RadiationDoseEffective> SIEVERT
    • MILLIMETRE_PER_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Speed> MILLIMETRE_PER_HOUR
    • INCHES_PER_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Speed> INCHES_PER_HOUR
    • METRE_PER_SECOND

      public static final javax.measure.Unit<javax.measure.quantity.Speed> METRE_PER_SECOND
    • KNOT

      public static final javax.measure.Unit<javax.measure.quantity.Speed> KNOT
    • STERADIAN

      public static final javax.measure.Unit<javax.measure.quantity.SolidAngle> STERADIAN
    • KELVIN

      public static final javax.measure.Unit<javax.measure.quantity.Temperature> KELVIN
    • MIRED

      public static final javax.measure.Unit<?> MIRED
    • SECOND

      public static final javax.measure.Unit<javax.measure.quantity.Time> SECOND
    • MINUTE

      public static final javax.measure.Unit<javax.measure.quantity.Time> MINUTE
    • HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Time> HOUR
    • DAY

      public static final javax.measure.Unit<javax.measure.quantity.Time> DAY
    • WEEK

      public static final javax.measure.Unit<javax.measure.quantity.Time> WEEK
    • YEAR

      public static final javax.measure.Unit<javax.measure.quantity.Time> YEAR
    • LITRE_PER_MINUTE

      public static final javax.measure.Unit<VolumetricFlowRate> LITRE_PER_MINUTE
    • CUBICMETRE_PER_SECOND

      public static final javax.measure.Unit<VolumetricFlowRate> CUBICMETRE_PER_SECOND
    • CUBICMETRE_PER_MINUTE

      public static final javax.measure.Unit<VolumetricFlowRate> CUBICMETRE_PER_MINUTE
    • CUBICMETRE_PER_HOUR

      public static final javax.measure.Unit<VolumetricFlowRate> CUBICMETRE_PER_HOUR
    • CUBICMETRE_PER_DAY

      public static final javax.measure.Unit<VolumetricFlowRate> CUBICMETRE_PER_DAY
    • BIT

      public static final javax.measure.Unit<DataAmount> BIT
    • KILOBIT

      public static final javax.measure.Unit<DataAmount> KILOBIT
    • MEGABIT

      public static final javax.measure.Unit<DataAmount> MEGABIT
    • GIGABIT

      public static final javax.measure.Unit<DataAmount> GIGABIT
    • TERABIT

      public static final javax.measure.Unit<DataAmount> TERABIT
    • PETABIT

      public static final javax.measure.Unit<DataAmount> PETABIT
    • BYTE

      public static final javax.measure.Unit<DataAmount> BYTE
    • OCTET

      public static final javax.measure.Unit<DataAmount> OCTET
    • KILOBYTE

      public static final javax.measure.Unit<DataAmount> KILOBYTE
    • MEGABYTE

      public static final javax.measure.Unit<DataAmount> MEGABYTE
    • GIGABYTE

      public static final javax.measure.Unit<DataAmount> GIGABYTE
    • TERABYTE

      public static final javax.measure.Unit<DataAmount> TERABYTE
    • PETABYTE

      public static final javax.measure.Unit<DataAmount> PETABYTE
    • KIBIBYTE

      public static final javax.measure.Unit<DataAmount> KIBIBYTE
    • MEBIBYTE

      public static final javax.measure.Unit<DataAmount> MEBIBYTE
    • GIBIBYTE

      public static final javax.measure.Unit<DataAmount> GIBIBYTE
    • TEBIBYTE

      public static final javax.measure.Unit<DataAmount> TEBIBYTE
    • PEBIBYTE

      public static final javax.measure.Unit<DataAmount> PEBIBYTE
    • KIBIOCTET

      public static final javax.measure.Unit<DataAmount> KIBIOCTET
    • MEBIOCTET

      public static final javax.measure.Unit<DataAmount> MEBIOCTET
    • GIBIOCTET

      public static final javax.measure.Unit<DataAmount> GIBIOCTET
    • TEBIOCTET

      public static final javax.measure.Unit<DataAmount> TEBIOCTET
    • PEBIOCTET

      public static final javax.measure.Unit<DataAmount> PEBIOCTET
    • BIT_PER_SECOND

      public static final javax.measure.Unit<DataTransferRate> BIT_PER_SECOND
    • KILOBIT_PER_SECOND

      public static final javax.measure.Unit<DataTransferRate> KILOBIT_PER_SECOND
    • MEGABIT_PER_SECOND

      public static final javax.measure.Unit<DataTransferRate> MEGABIT_PER_SECOND
    • GIGABIT_PER_SECOND

      public static final javax.measure.Unit<DataTransferRate> GIGABIT_PER_SECOND
    • TERABIT_PER_SECOND

      public static final javax.measure.Unit<DataTransferRate> TERABIT_PER_SECOND
  • 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
      Specified by:
      getName in class tech.units.indriya.AbstractSystemOfUnits