Class SailClosingIteration<T,X extends Exception>

All Implemented Interfaces:
AutoCloseable, CloseableIteration<T,X>, Iteration<T,X>

abstract class SailClosingIteration<T,X extends Exception> extends IterationWrapper<T,X>
An Iteration that holds on to a SailClosable until the Iteration is closed. Upon closing, the underlying Iteration is closed before the lock is released. This iterator closes itself as soon as all elements have been read.