public abstract class AbstractUntypedIteratorDecorator<I,O>
extends java.lang.Object
implements java.util.Iterator<O>
All methods are forwarded to the decorated iterator.
| Modifier and Type | Field and Description |
|---|---|
private java.util.Iterator<I> |
iterator
The iterator being decorated
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUntypedIteratorDecorator(java.util.Iterator<I> iterator)
Create a new AbstractUntypedIteratorDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Iterator<I> |
getIterator()
Gets the iterator being decorated.
|
boolean |
hasNext() |
void |
remove() |
private final java.util.Iterator<I> iterator
protected AbstractUntypedIteratorDecorator(java.util.Iterator<I> iterator)
iterator - the iterator to decorateprotected java.util.Iterator<I> getIterator()
public boolean hasNext()
hasNext in interface java.util.Iterator<O>public void remove()
remove in interface java.util.Iterator<O>