Class CurrencyUnit

java.lang.Object
tech.units.indriya.AbstractUnit<Currency>
org.openhab.core.library.unit.CurrencyUnit
All Implemented Interfaces:
Serializable, Comparable<javax.measure.Unit<Currency>>, javax.measure.Unit<Currency>, tech.uom.lib.common.function.Nameable, tech.uom.lib.common.function.PrefixOperator<Currency>, tech.uom.lib.common.function.SymbolSupplier

@NonNullByDefault({PARAMETER,RETURN_TYPE,FIELD,TYPE_BOUND}) public final class CurrencyUnit extends tech.units.indriya.AbstractUnit<Currency>
The CurrencyUnit is a UoM compatible unit for currencies.
Author:
Jan N. Klug - Initial contribution
See Also:
  • Constructor Details

  • Method Details

    • getSystemConverter

      public javax.measure.UnitConverter getSystemConverter()
      Specified by:
      getSystemConverter in class tech.units.indriya.AbstractUnit<Currency>
    • toSystemUnit

      protected javax.measure.Unit<Currency> toSystemUnit()
      Specified by:
      toSystemUnit in class tech.units.indriya.AbstractUnit<Currency>
    • toString

      public String toString()
      Specified by:
      toString in interface javax.measure.Unit<Currency>
      Overrides:
      toString in class tech.units.indriya.AbstractUnit<Currency>
    • getBaseUnits

      @NonNullByDefault({}) public Map<? extends javax.measure.Unit<?>,Integer> getBaseUnits()
      Specified by:
      getBaseUnits in interface javax.measure.Unit<Currency>
      Specified by:
      getBaseUnits in class tech.units.indriya.AbstractUnit<Currency>
    • getDimension

      public javax.measure.Dimension getDimension()
      Specified by:
      getDimension in interface javax.measure.Unit<Currency>
      Specified by:
      getDimension in class tech.units.indriya.AbstractUnit<Currency>
    • setName

      public void setName(@NonNullByDefault({}) String name)
      Overrides:
      setName in class tech.units.indriya.AbstractUnit<Currency>
    • getName

      public String getName()
      Specified by:
      getName in interface tech.uom.lib.common.function.Nameable
      Specified by:
      getName in interface javax.measure.Unit<Currency>
      Overrides:
      getName in class tech.units.indriya.AbstractUnit<Currency>
    • getSymbol

      public @Nullable String getSymbol()
      Specified by:
      getSymbol in interface tech.uom.lib.common.function.SymbolSupplier
      Specified by:
      getSymbol in interface javax.measure.Unit<Currency>
      Overrides:
      getSymbol in class tech.units.indriya.AbstractUnit<Currency>
    • setSymbol

      public void setSymbol(@Nullable String s)
      Overrides:
      setSymbol in class tech.units.indriya.AbstractUnit<Currency>
    • shift

      public javax.measure.Unit<Currency> shift(double offset)
      Specified by:
      shift in interface javax.measure.Unit<Currency>
      Overrides:
      shift in class tech.units.indriya.AbstractUnit<Currency>
    • multiply

      public javax.measure.Unit<Currency> multiply(double multiplier)
      Specified by:
      multiply in interface javax.measure.Unit<Currency>
      Overrides:
      multiply in class tech.units.indriya.AbstractUnit<Currency>
    • divide

      public javax.measure.Unit<Currency> divide(double divisor)
      Specified by:
      divide in interface javax.measure.Unit<Currency>
      Overrides:
      divide in class tech.units.indriya.AbstractUnit<Currency>
    • pow

      public javax.measure.Unit<?> pow(int n)
      Specified by:
      pow in interface javax.measure.Unit<Currency>
      Overrides:
      pow in class tech.units.indriya.AbstractUnit<Currency>
    • prefix

      public javax.measure.Unit<Currency> prefix(@NonNullByDefault({}) javax.measure.Prefix prefix)
      Specified by:
      prefix in interface tech.uom.lib.common.function.PrefixOperator<Currency>
      Specified by:
      prefix in interface javax.measure.Unit<Currency>
      Overrides:
      prefix in class tech.units.indriya.AbstractUnit<Currency>
    • compareTo

      public int compareTo(javax.measure.Unit<Currency> that)
      Specified by:
      compareTo in interface Comparable<javax.measure.Unit<Currency>>
      Overrides:
      compareTo in class tech.units.indriya.AbstractUnit<Currency>
    • isEquivalentTo

      public boolean isEquivalentTo(@NonNullByDefault({}) javax.measure.Unit<Currency> that)
      Specified by:
      isEquivalentTo in interface javax.measure.Unit<Currency>
      Overrides:
      isEquivalentTo in class tech.units.indriya.AbstractUnit<Currency>
    • equals

      public boolean equals(@Nullable Object obj)
      Specified by:
      equals in class tech.units.indriya.AbstractUnit<Currency>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class tech.units.indriya.AbstractUnit<Currency>