java.util.Iteratorpublic class ProxyIterator
extends java.lang.Object
implements java.util.Iterator
Iterator which delegates its methods to a proxy instance.| Constructor | Description |
|---|---|
ProxyIterator() |
Deprecated.
Constructs a new
ProxyIterator that will not function
until setIterator(Iterator) is called. |
ProxyIterator(java.util.Iterator iterator) |
Deprecated.
Constructs a new
ProxyIterator that will use the
given iterator. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Iterator |
getIterator() |
Deprecated.
Getter for property iterator.
|
boolean |
hasNext() |
Deprecated.
Returns true if the underlying iterator has more elements.
|
java.lang.Object |
next() |
Deprecated.
Returns the next element from the underlying iterator.
|
void |
remove() |
Deprecated.
Removes the last returned element from the collection that spawned
the underlying iterator.
|
void |
setIterator(java.util.Iterator iterator) |
Deprecated.
Setter for property iterator.
|
public ProxyIterator()
ProxyIterator that will not function
until setIterator(Iterator) is called.public ProxyIterator(java.util.Iterator iterator)
ProxyIterator that will use the
given iterator.iterator - the underlying iteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if the underlying iterator
raises it because it has no more elementspublic void remove()
remove in interface java.util.Iteratorpublic java.util.Iterator getIterator()
public void setIterator(java.util.Iterator iterator)
iterator - New value of property iterator.Copyright © 2001-2018 Apache Software Foundation. All Rights Reserved.