Class SystemOfUnits

java.lang.Object
javax.measure.unit.SystemOfUnits
Direct Known Subclasses:
NonSI, SI

public abstract class SystemOfUnits extends Object

This class represents a system of units, it groups units together for historical or cultural reasons. Nothing prevents a unit from belonging to several system of units at the same time (for example an imperial system would have many of the units held by NonSI).

  • Constructor Details

    • SystemOfUnits

      public SystemOfUnits()
  • Method Details

    • getUnits

      public abstract Set<Unit<?>> getUnits()
      Returns a read only view over the units defined in this system.
      Returns:
      the collection of units.