Class OperandPair<V,U extends Unit>
- java.lang.Object
-
- org.tensorics.core.quantity.options.OperandPair<V,U>
-
- Type Parameters:
V
- the type of the numerical scalar valuesU
- the type of the base
- All Implemented Interfaces:
java.io.Serializable
public final class OperandPair<V,U extends Unit> extends java.lang.Object implements java.io.Serializable
Represents a pair of values which have a common base. This is mainly used as internal container for further calculations.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
ErronousValue<V>
left()
static <V,U extends Unit>
OperandPair<V,U>ofLeftRightUnit(ErronousValue<V> left, ErronousValue<V> right, U unit)
ErronousValue<V>
right()
U
unit()
-
-
-
Method Detail
-
ofLeftRightUnit
public static <V,U extends Unit> OperandPair<V,U> ofLeftRightUnit(ErronousValue<V> left, ErronousValue<V> right, U unit)
-
left
public ErronousValue<V> left()
-
right
public ErronousValue<V> right()
-
unit
public U unit()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-