java.util.Iterator
AbstractDualBidiMap.EntrySetIterator
, AbstractDualBidiMap.KeySetIterator
, AbstractDualBidiMap.ValuesIterator
public 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.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.