java.lang.Object | |
↳ | org.apache.commons.collections.iterators.ProxyIterator |
This class is deprecated.
Use AbstractIteratorDecorator. Will be removed in v4.0
A Proxy Iterator Iterator which delegates its methods to a proxy instance.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
ProxyIterator that will not function
until setIterator(Iterator) is called. | |||||||||||
Constructs a new
ProxyIterator that will use the
given iterator. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Getter for property iterator.
| |||||||||||
Returns true if the underlying iterator has more elements.
| |||||||||||
Returns the next element from the underlying iterator.
| |||||||||||
Removes the last returned element from the collection that spawned
the underlying iterator.
| |||||||||||
Setter for property iterator.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Iterator
|
Constructs a new ProxyIterator
that will not function
until setIterator(Iterator)
is called.
Constructs a new ProxyIterator
that will use the
given iterator.
iterator | the underlying iterator |
---|
Returns true if the underlying iterator has more elements.
Returns the next element from the underlying iterator.
NoSuchElementException | if the underlying iterator raises it because it has no more elements |
---|
Removes the last returned element from the collection that spawned the underlying iterator.
Setter for property iterator.
iterator | New value of property iterator. |
---|