Class Quantity

java.lang.Object
ome.units.quantity.Quantity
Direct Known Subclasses:
Angle, ElectricPotential, Frequency, Length, Power, Pressure, Temperature, Time

public abstract class Quantity extends Object
An abstract quantity. This represents a quantity (value) for a given unit system.
Since:
5.1
  • Constructor Details

    • Quantity

      public Quantity()
  • Method Details

    • value

      public abstract 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.