Interface SegmentMapFunction

All Superinterfaces:
Function<Optional<Segment>,Optional<Segment>>
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 SegmentMapFunction extends Function<Optional<Segment>,Optional<Segment>>
Functional interface that captures the process of transforming a Segment to another Segment if possible.

The Segment returned by this method, if present, must always be closed by the caller.