Class Quantity

    • Constructor Summary

      Constructors 
      Constructor Description
      Quantity()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract Unit<? extends Quantity> unit()
      Get the unit for this quantity.
      abstract java.lang.Number value()
      Get the numerical value of this quantity.
      • Methods inherited from class java.lang.Object

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

      • Quantity

        public Quantity()
    • Method Detail

      • value

        public abstract java.lang.Number value()
        Get the numerical value of this quantity.
        Returns:
        the value.
      • unit

        public abstract Unit<? extends Quantity> unit()
        Get the unit for this quantity.
        Returns:
        the unit.