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.

@FunctionalInterface public interface BeforeCondition
A condition to be checked before merging two ObjectMasks.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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 source ObjectMask to be merged
      destination - the destination ObjectMask to be merged into
      unitConverter - an optional UnitConverter for unit conversions
      Returns:
      true if the objects satisfy the condition for merging, false otherwise
      Throws:
      OperationFailedException - if the condition check fails