Interface BinaryOperationValidityStrategy
-
- All Superinterfaces:
ManipulationOption
,Option<ManipulationOption>
- All Known Implementing Classes:
RequireBothValidStrategy
,ThrowIfOneInvalidStrategy
public interface BinaryOperationValidityStrategy extends ManipulationOption
Instances of this interface define, how the validity values for binary operations of two validity aware values are propageted.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validityForBinaryOperation(ValidityAware left, ValidityAware right)
Has to return the resulting validity for the combination of the two scalars.-
Methods inherited from interface org.tensorics.core.commons.options.Option
getMarkerInterface
-
-
-
-
Method Detail
-
validityForBinaryOperation
boolean validityForBinaryOperation(ValidityAware left, ValidityAware right)
Has to return the resulting validity for the combination of the two scalars.- Parameters:
left
- the left operand of a binary operationright
- the right operand of a binary operation- Returns:
- the combined validity
- Throws:
java.lang.RuntimeException
- if the combination of the two is not allowed
-
-