|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.collections.iterators.ProxyIterator
A Proxy Iterator
which delegates its methods to a proxy instance.
ProxyListIterator
Constructor Summary | |
ProxyIterator()
Constructs a new ProxyIterator that will not function
until setIterator(Iterator) is called. |
|
ProxyIterator(java.util.Iterator iterator)
Constructs a new ProxyIterator that will use the
given iterator. |
Method Summary | |
java.util.Iterator |
getIterator()
Getter for property iterator. |
boolean |
hasNext()
Returns true if the underlying iterator has more elements. |
java.lang.Object |
next()
Returns the next element from the underlying iterator. |
void |
remove()
Removes the last returned element from the collection that spawned the underlying iterator. |
void |
setIterator(java.util.Iterator iterator)
Setter for property iterator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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 underyling iteratorMethod Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
NoSuchElementException
- if the underlying iterator
raises it because it has no more elementspublic void remove()
remove
in interface java.util.Iterator
public java.util.Iterator getIterator()
public void setIterator(java.util.Iterator iterator)
iterator
- New value of property iterator.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |