public class RemovableCloseableIterator<C> extends RemovableIterator<C> implements CloseableIterator<C>
| Modifier and Type | Field and Description |
|---|---|
protected CloseableIterator<C> |
realIterator |
consumer, currentValue, previousValue| Constructor and Description |
|---|
RemovableCloseableIterator(CloseableIterator<C> realIterator,
java.util.function.Consumer<? super C> consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
getNextFromIterator, hasNext, next, removeprotected final CloseableIterator<C> realIterator
public RemovableCloseableIterator(CloseableIterator<C> realIterator, java.util.function.Consumer<? super C> consumer)
public void close()
close in interface java.lang.AutoCloseableclose in interface CloseableIterator<C>