Class AbstractQuantityOperation<V>
- java.lang.Object
-
- org.tensorics.core.quantity.operations.AbstractQuantityOperation<V>
-
- Type Parameters:
V
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
QuantityBinaryOperation
,QuantityUnaryOperation
public class AbstractQuantityOperation<V> extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractQuantityOperation(QuantityEnvironment<V> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuantityEnvironment<V>
environment()
boolean
equals(java.lang.Object obj)
int
hashCode()
protected com.google.common.base.Optional<V>
productError(QuantifiedValue<V> leftOperand, QuantifiedValue<V> rightOperand)
java.lang.String
toString()
protected boolean
validityFor(QuantifiedValue<V> leftOperand, QuantifiedValue<V> rightOperand)
-
-
-
Constructor Detail
-
AbstractQuantityOperation
protected AbstractQuantityOperation(QuantityEnvironment<V> environment)
-
-
Method Detail
-
environment
protected QuantityEnvironment<V> environment()
-
validityFor
protected boolean validityFor(QuantifiedValue<V> leftOperand, QuantifiedValue<V> rightOperand)
-
productError
protected com.google.common.base.Optional<V> productError(QuantifiedValue<V> leftOperand, QuantifiedValue<V> rightOperand)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-