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,
Consumer<? super C> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
getNextFromIterator, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next, remove
protected final CloseableIterator<C> realIterator
public RemovableCloseableIterator(CloseableIterator<C> realIterator, Consumer<? super C> consumer)
public void close()
close
in interface AutoCloseable
close
in interface CloseableIterator<C>
Copyright © 2021 JBoss by Red Hat. All rights reserved.