public class AbstractIteratorDecorator extends Object implements Iterator
All methods are forwarded to the decorated iterator.
Modifier and Type | Field and Description |
---|---|
protected Iterator |
iterator
The iterator being decorated
|
Constructor and Description |
---|
AbstractIteratorDecorator(Iterator iterator)
Constructor that decorates the specified iterator.
|
Modifier and Type | Method and Description |
---|---|
protected Iterator |
getIterator()
Gets the iterator being decorated.
|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final Iterator iterator
public AbstractIteratorDecorator(Iterator iterator)
iterator
- the iterator to decorate, must not be nullIllegalArgumentException
- if the collection is nullprotected Iterator getIterator()
Copyright © 2001-2015 Apache Software Foundation. All Rights Reserved.