Package wt.units
Class FloatingPointWithUnits
java.lang.Object
java.lang.Number
wt.units.FloatingPointWithUnits
- All Implemented Interfaces:
Externalizable,Serializable,Comparable,Evolvable
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
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic FloatingPointWithUnitsadd(FloatingPointWithUnits operandOne, FloatingPointWithUnits operandTwo) Adds the operands and returns the sum.Methods inherited from class java.lang.Number
byteValue, shortValue
-
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.
-