public abstract class FilteredCloseableIterator<RETURN_TYPE,ITER_TYPE> extends java.lang.Object implements CloseableIterator<RETURN_TYPE>
| Constructor and Description |
|---|
FilteredCloseableIterator(CloseableIterator<ITER_TYPE> iter) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Optional<RETURN_TYPE> |
accept(ITER_TYPE element) |
void |
close() |
boolean |
hasNext() |
RETURN_TYPE |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmappublic FilteredCloseableIterator(CloseableIterator<ITER_TYPE> iter)
protected abstract java.util.Optional<RETURN_TYPE> accept(ITER_TYPE element)
public final boolean hasNext()
hasNext in interface java.util.Iterator<RETURN_TYPE>public final RETURN_TYPE next()
next in interface java.util.Iterator<RETURN_TYPE>public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException