Class QuantityBinaryOperation<V>
- java.lang.Object
-
- org.tensorics.core.quantity.operations.AbstractQuantityOperation<V>
-
- org.tensorics.core.quantity.operations.QuantityBinaryOperation<V>
-
- Type Parameters:
V
- the type of the scalar values on which all operations are based on (elements of a field)
- All Implemented Interfaces:
java.io.Serializable
,BinaryFunction<QuantifiedValue<V>,QuantifiedValue<V>>
,BinaryOperation<QuantifiedValue<V>>
- Direct Known Subclasses:
QuantityDivision
,QuantityMultiplication
,QuantitySumOrDifferenceOperation
public abstract class QuantityBinaryOperation<V> extends AbstractQuantityOperation<V> implements BinaryOperation<QuantifiedValue<V>>, java.io.Serializable
A base class for binary operations on physical quantities. It keeps the scalar bianary operation to be retrieved by the sub classes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QuantityBinaryOperation(QuantityEnvironment<V> environment, BinaryOperation<V> scalarBinaryOperation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
protected BinaryOperation<V>
operation()
java.lang.String
toString()
-
Methods inherited from class org.tensorics.core.quantity.operations.AbstractQuantityOperation
environment, productError, validityFor
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.tensorics.core.math.operations.BinaryFunction
perform
-
-
-
-
Constructor Detail
-
QuantityBinaryOperation
protected QuantityBinaryOperation(QuantityEnvironment<V> environment, BinaryOperation<V> scalarBinaryOperation)
-
-
Method Detail
-
operation
protected BinaryOperation<V> operation()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractQuantityOperation<V>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractQuantityOperation<V>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractQuantityOperation<V>
-
-