java.util.IteratorAbstractDualBidiMap.EntrySetIterator, AbstractDualBidiMap.KeySetIterator, AbstractDualBidiMap.ValuesIteratorpublic class AbstractIteratorDecorator
extends java.lang.Object
implements java.util.Iterator
All methods are forwarded to the decorated iterator.
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Iterator |
iterator |
The iterator being decorated
|
| Constructor | Description |
|---|---|
AbstractIteratorDecorator(java.util.Iterator iterator) |
Constructor that decorates the specified iterator.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Iterator |
getIterator() |
Gets the iterator being decorated.
|
boolean |
hasNext() |
|
java.lang.Object |
next() |
|
void |
remove() |
public AbstractIteratorDecorator(java.util.Iterator iterator)
iterator - the iterator to decorate, must not be nulljava.lang.IllegalArgumentException - if the collection is nullprotected java.util.Iterator getIterator()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.IteratorCopyright © 2001-2018 Apache Software Foundation. All Rights Reserved.