Class RequireBothValidStrategy
- java.lang.Object
-
- org.tensorics.core.quantity.options.RequireBothValidStrategy
-
- All Implemented Interfaces:
ManipulationOption
,Option<ManipulationOption>
,BinaryOperationValidityStrategy
public class RequireBothValidStrategy extends java.lang.Object implements BinaryOperationValidityStrategy
The validation strategy, which requires both operands to be valid, in order to have a valid result.
-
-
Constructor Summary
Constructors Constructor Description RequireBothValidStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<BinaryOperationValidityStrategy>
getMarkerInterface()
boolean
validityForBinaryOperation(ValidityAware left, ValidityAware right)
Has to return the resulting validity for the combination of the two scalars.
-
-
-
Method Detail
-
validityForBinaryOperation
public boolean validityForBinaryOperation(ValidityAware left, ValidityAware right)
Description copied from interface:BinaryOperationValidityStrategy
Has to return the resulting validity for the combination of the two scalars.- Specified by:
validityForBinaryOperation
in interfaceBinaryOperationValidityStrategy
- Parameters:
left
- the left operand of a binary operationright
- the right operand of a binary operation- Returns:
- the combined validity
-
getMarkerInterface
public java.lang.Class<BinaryOperationValidityStrategy> getMarkerInterface()
- Specified by:
getMarkerInterface
in interfaceOption<ManipulationOption>
-
-