Class UnitsRegistry


  • public class UnitsRegistry
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UnitsRegistry()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addUnit​(java.lang.String unitURI, javax.measure.Unit<?> unit)  
      static void addUnit​(UnitsOfMeasure unitsOfMeasure)  
      static javax.measure.Unit<?> getUnit​(java.lang.String unitURI)  
      static java.lang.String getUnitURI​(javax.measure.Unit<?> unit)  
      static java.lang.String getUnitURI​(UnitsOfMeasure unitOfMeasure)  
      static java.lang.Boolean isLinearUnits​(java.lang.String unitURI)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnitsRegistry

        public UnitsRegistry()
    • Method Detail

      • addUnit

        public static final void addUnit​(java.lang.String unitURI,
                                         javax.measure.Unit<?> unit)
      • addUnit

        public static final void addUnit​(UnitsOfMeasure unitsOfMeasure)
      • getUnit

        public static final javax.measure.Unit<?> getUnit​(java.lang.String unitURI)
      • getUnitURI

        public static final java.lang.String getUnitURI​(UnitsOfMeasure unitOfMeasure)
      • getUnitURI

        public static final java.lang.String getUnitURI​(javax.measure.Unit<?> unit)
      • isLinearUnits

        public static final java.lang.Boolean isLinearUnits​(java.lang.String unitURI)