Class QuantityDivision<S>
- java.lang.Object
-
- org.tensorics.core.quantity.operations.AbstractQuantityOperation<V>
-
- org.tensorics.core.quantity.operations.QuantityBinaryOperation<S>
-
- org.tensorics.core.quantity.operations.QuantityDivision<S>
-
- Type Parameters:
S
- the type of the scalar values (field elements) on which all the operations are based on
- All Implemented Interfaces:
java.io.Serializable
,BinaryFunction<QuantifiedValue<S>,QuantifiedValue<S>>
,BinaryOperation<QuantifiedValue<S>>
public class QuantityDivision<S> extends QuantityBinaryOperation<S>
The binary operation which describes the division of two quantities.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuantityDivision(QuantityEnvironment<S> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuantifiedValue<S>
perform(QuantifiedValue<S> left, QuantifiedValue<S> right)
Has to be implemented to perform the actual operation.-
Methods inherited from class org.tensorics.core.quantity.operations.QuantityBinaryOperation
equals, hashCode, operation, toString
-
Methods inherited from class org.tensorics.core.quantity.operations.AbstractQuantityOperation
environment, productError, validityFor
-
-
-
-
Constructor Detail
-
QuantityDivision
public QuantityDivision(QuantityEnvironment<S> environment)
-
-
Method Detail
-
perform
public QuantifiedValue<S> perform(QuantifiedValue<S> left, QuantifiedValue<S> right)
Description copied from interface:BinaryFunction
Has to be implemented to perform the actual operation. The order of operands might be important or not, depending, if the operation is commutative or not.- Parameters:
left
- the left operand to be used in the operationright
- the right operand to be used in the operation- Returns:
- the result of the operation
-
-