Class UnitsPerTime

All Implemented Interfaces:
Serializable, Comparable<PrmNumber>

public class UnitsPerTime extends PrmNumber
This value type is used to define a unit per time.
See Also:
  • Field Details

    • ZERO_UNITSPERTIME

      public static final UnitsPerTime ZERO_UNITSPERTIME
      Zero value
    • ONE_UNITSPERTIME

      public static final UnitsPerTime ONE_UNITSPERTIME
      1.0 value
    • MAX_UNITSPERTIME

      public static final UnitsPerTime MAX_UNITSPERTIME
      Maximum value
  • Constructor Details

    • UnitsPerTime

      public UnitsPerTime(double d)
      Constructs a UnitsPerTime object with a given value in double format.
      Parameters:
      d - the units value per time.
    • UnitsPerTime

      public UnitsPerTime(Number n)
      Constructs a UnitsPerTime object with a given value in Number format.
      Parameters:
      n - the units value per time.
  • Method Details

    • compareTo

      public int compareTo(PrmNumber obj)
      Compares two UnitsPerTime objects.
      Specified by:
      compareTo in interface Comparable<PrmNumber>
      Overrides:
      compareTo in class PrmNumber
      Parameters:
      obj - the Object to be compared.
      Returns:
      the value 0 if the argument is a UnitsPerTime numerically equal to this UnitsPerTime; a value less than 0 if the argument is a UnitsPerTime numerically greater than this UnitsPerTime, or if the argument is not a UnitsPerTime; and a value greater than 0 if the argument is a UnitsPerTime numerically less than this UnitsPerTime.
    • getValue

      public double getValue()
      Gets the value represented by this object.
      Returns:
      the units value