Package wt.units

Class FloatingPointWithUnits

java.lang.Object
java.lang.Number
wt.units.FloatingPointWithUnits
All Implemented Interfaces:
Externalizable, Serializable, Comparable, Evolvable

public class FloatingPointWithUnits extends Number implements Comparable, Evolvable, Serializable
Attribute content wrapper for FloatingPoint with Units. Each FloatingPointWithUnits content will have wt.units.Unit object. This attribute can only be set from the constructor.

Supported API: true

Extendable: false
See Also:
  • Method Details

    • add

      public static FloatingPointWithUnits add(FloatingPointWithUnits operandOne, FloatingPointWithUnits operandTwo)
      Adds the operands and returns the sum.

      Supported API: true
      Parameters:
      operandOne - The first operand to sum.
      operandTwo - The second operand to sum.
      Returns:
      The sum of the addition. May return null depending on the inputs.