Interface BeforeCondition
- All Known Implementing Classes:
DistanceCondition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A condition to be checked before merging two
ObjectMasks.-
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(ObjectMask source, ObjectMask destination, Optional<UnitConverter> unitConverter) Checks if the source and destination objects satisfy the condition for merging.
-
Method Details
-
accept
boolean accept(ObjectMask source, ObjectMask destination, Optional<UnitConverter> unitConverter) throws OperationFailedException Checks if the source and destination objects satisfy the condition for merging.- Parameters:
source- the sourceObjectMaskto be mergeddestination- the destinationObjectMaskto be merged intounitConverter- an optionalUnitConverterfor unit conversions- Returns:
- true if the objects satisfy the condition for merging, false otherwise
- Throws:
OperationFailedException- if the condition check fails
-