Class MetricPrefix

java.lang.Object
org.openhab.core.library.unit.MetricPrefix

@NonNullByDefault public class MetricPrefix extends Object
The metric prefixes used to derive units by specific powers of 10. This delegates to the enum instances of MetricPrefix.
Author:
Henning Treu - Initial contribution
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    ATTO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    CENTI(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    DECI(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    DEKA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    EXA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    FEMTO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    GIGA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    HECTO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    KILO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    MEGA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    MICRO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    MILLI(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    NANO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    PETA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    PICO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    TERA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    YOCTO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    YOTTA(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    ZEPTO(javax.measure.Unit<T> unit)
     
    static <T extends javax.measure.Quantity<T>>
    javax.measure.Unit<T>
    ZETTA(javax.measure.Unit<T> unit)
     

    Methods inherited from class java.lang.Object

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

    • MetricPrefix

      public MetricPrefix()
  • Method Details

    • YOTTA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> YOTTA(javax.measure.Unit<T> unit)
    • ZETTA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> ZETTA(javax.measure.Unit<T> unit)
    • EXA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> EXA(javax.measure.Unit<T> unit)
    • PETA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> PETA(javax.measure.Unit<T> unit)
    • TERA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> TERA(javax.measure.Unit<T> unit)
    • GIGA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> GIGA(javax.measure.Unit<T> unit)
    • MEGA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> MEGA(javax.measure.Unit<T> unit)
    • KILO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> KILO(javax.measure.Unit<T> unit)
    • HECTO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> HECTO(javax.measure.Unit<T> unit)
    • DEKA

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> DEKA(javax.measure.Unit<T> unit)
    • DECI

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> DECI(javax.measure.Unit<T> unit)
    • CENTI

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> CENTI(javax.measure.Unit<T> unit)
    • MILLI

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> MILLI(javax.measure.Unit<T> unit)
    • MICRO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> MICRO(javax.measure.Unit<T> unit)
    • NANO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> NANO(javax.measure.Unit<T> unit)
    • PICO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> PICO(javax.measure.Unit<T> unit)
    • FEMTO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> FEMTO(javax.measure.Unit<T> unit)
    • ATTO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> ATTO(javax.measure.Unit<T> unit)
    • ZEPTO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> ZEPTO(javax.measure.Unit<T> unit)
    • YOCTO

      public static <T extends javax.measure.Quantity<T>> javax.measure.Unit<T> YOCTO(javax.measure.Unit<T> unit)