public class RemovableIterator<C>
extends java.lang.Object
implements java.util.Iterator<C>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Consumer<? super C> |
consumer |
protected C |
currentValue |
protected C |
previousValue |
protected java.util.Iterator<C> |
realIterator |
| Constructor and Description |
|---|
RemovableIterator(java.util.Iterator<C> realIterator,
java.util.function.Consumer<? super C> consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected C |
getNextFromIterator() |
boolean |
hasNext() |
C |
next() |
void |
remove() |
protected final java.util.Iterator<C> realIterator
protected final java.util.function.Consumer<? super C> consumer
protected C previousValue
protected C currentValue