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, waitforEachRemainingprotected 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–2016 The Apache Software Foundation. All rights reserved.