T - the type of elements returned by this iterator@Evolving public interface CloseableIterator<T> extends java.util.Iterator<T>, java.io.Closeable
Iterator| Modifier and Type | Method and Description |
|---|---|
default CloseableIterator<T> |
combine(CloseableIterator<T> other)
Combine the current iterator with another iterator.
|
default CloseableIterator<T> |
filter(java.util.function.Function<T,Boolean> mapper) |
default <U> CloseableIterator<U> |
map(java.util.function.Function<T,U> mapper) |
default <U> CloseableIterator<U> map(java.util.function.Function<T,U> mapper)
default CloseableIterator<T> filter(java.util.function.Function<T,Boolean> mapper)
default CloseableIterator<T> combine(CloseableIterator<T> other)
other - the other iterator to combine with