@FunctionalInterface
public interface SweepProcessor<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
SweepProcessor.Generator<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
process(int offset,
T interval,
boolean atStart,
java.util.Collection<? extends T> overlappingIntervals) |
static <T extends Segment> |
sweep(SweepProcessor.Generator<? extends T> generator,
SweepProcessor<T> sweepProcessor)
Process all intervals from generator in their "start offset - then end offset" order.
|
boolean process(int offset, T interval, boolean atStart, java.util.Collection<? extends T> overlappingIntervals)
static <T extends Segment> boolean sweep(SweepProcessor.Generator<? extends T> generator, SweepProcessor<T> sweepProcessor)