Class AndCondition
Object
AndCondition
- All Implemented Interfaces:
UpdatableBeforeCondition
Combines two UpdatableBeforeConditions as LOGICAL ANDs
-
Constructor Summary
ConstructorsConstructorDescriptionAndCondition(UpdatableBeforeCondition firstCondition, UpdatableBeforeCondition secondCondition) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(ObjectMask destination) Checks if the destination object should be merged with the previously set source object.voidupdateSourceObject(ObjectMask source, Optional<UnitConverter> unitConverter) Updates the source object and performs any necessary pre-computations.
-
Constructor Details
-
AndCondition
public AndCondition(UpdatableBeforeCondition firstCondition, UpdatableBeforeCondition secondCondition)
-
-
Method Details
-
updateSourceObject
public void updateSourceObject(ObjectMask source, Optional<UnitConverter> unitConverter) throws OperationFailedException Description copied from interface:UpdatableBeforeConditionUpdates the source object and performs any necessary pre-computations.- Specified by:
updateSourceObjectin interfaceUpdatableBeforeCondition- Parameters:
source- the sourceObjectMaskunitConverter- an optionalUnitConverterfor unit conversions- Throws:
OperationFailedException- if the update operation fails
-
accept
Description copied from interface:UpdatableBeforeConditionChecks if the destination object should be merged with the previously set source object.- Specified by:
acceptin interfaceUpdatableBeforeCondition- Parameters:
destination- the destinationObjectMaskto check against the source- Returns:
- true if the objects should be merged, false otherwise
- Throws:
OperationFailedException- if the check operation fails
-