| |
|
| java.lang.Object org.apache.commons.collections.iterators.ProxyIterator
ProxyIterator | public class ProxyIterator implements Iterator(Code) | | A Proxy
Iterator Iterator which delegates its methods to a proxy instance.
since: Commons Collections 1.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: James Strachan |
Method Summary | |
public Iterator | getIterator() Getter for property iterator. | public boolean | hasNext() Returns true if the underlying iterator has more elements. | public Object | next() Returns the next element from the underlying iterator. | public void | remove() Removes the last returned element from the collection that spawned
the underlying iterator. | public void | setIterator(Iterator iterator) Setter for property iterator. |
ProxyIterator | public ProxyIterator(Iterator iterator)(Code) | | Constructs a new ProxyIterator that will use the
given iterator.
Parameters: iterator - the underlying iterator |
getIterator | public Iterator getIterator()(Code) | | Getter for property iterator.
Value of property iterator. |
hasNext | public boolean hasNext()(Code) | | Returns true if the underlying iterator has more elements.
true if the underlying iterator has more elements |
next | public Object next()(Code) | | Returns the next element from the underlying iterator.
the next element from the underlying iterator throws: java.util.NoSuchElementException - if the underlying iterator raises it because it has no more elements |
remove | public void remove()(Code) | | Removes the last returned element from the collection that spawned
the underlying iterator.
|
setIterator | public void setIterator(Iterator iterator)(Code) | | Setter for property iterator.
Parameters: iterator - New value of property iterator. |
|
|
|