Interface ObjectProcessor

All Known Implementing Classes:
ObjectMerger, OverlapFixer

public interface ObjectProcessor
Minimal interface for processing one or more objects.

This is intended for tasks such as merging, splitting, filtering, etc.

  • Method Details

    • process

      List<PathObject> process(Collection<? extends PathObject> input)
      Process a collection of objects and return the result.
      Parameters:
      input - the input objects
      Returns:
      the output objects; this should always be a new collection (even if it contains the same objects)
    • andThen

      default ObjectProcessor andThen(ObjectProcessor after)
      Create a new ObjectProcessor that applies (at least) two processors sequentially.
      Parameters:
      after - the processor to apply next
      Returns:
      a processor that applies this processor first, and then the given processor