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
ObjectMask
s.-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(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 sourceObjectMask
to be mergeddestination
- the destinationObjectMask
to be merged intounitConverter
- an optionalUnitConverter
for unit conversions- Returns:
- true if the objects satisfy the condition for merging, false otherwise
- Throws:
OperationFailedException
- if the condition check fails
-