public class ProxyIterator extends Object implements Iterator
Iterator which delegates its methods to a proxy instance.| Constructor and Description |
|---|
ProxyIterator()
Deprecated.
Constructs a new
ProxyIterator that will not function
until setIterator(Iterator) is called. |
ProxyIterator(Iterator iterator)
Deprecated.
Constructs a new
ProxyIterator that will use the
given iterator. |
| Modifier and Type | Method and Description |
|---|---|
Iterator |
getIterator()
Deprecated.
Getter for property iterator.
|
boolean |
hasNext()
Deprecated.
Returns true if the underlying iterator has more elements.
|
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(Iterator iterator)
Deprecated.
Setter for property iterator.
|
public ProxyIterator()
ProxyIterator that will not function
until setIterator(Iterator) is called.public ProxyIterator(Iterator iterator)
ProxyIterator that will use the
given iterator.iterator - the underlying iteratorpublic boolean hasNext()
public Object next()
next in interface IteratorNoSuchElementException - if the underlying iterator
raises it because it has no more elementspublic void remove()
public Iterator getIterator()
public void setIterator(Iterator iterator)
iterator - New value of property iterator.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.