org.apache.commons.collections.iterators
Class ProxyIterator
java.lang.Object
org.apache.commons.collections.iterators.ProxyIterator
- Iterator
public class ProxyIterator
extends java.lang.Object
implements Iterator
A Proxy Iterator
which delegates its methods to a proxy instance.
$Revision: 1.10 $ $Date: 2004/02/18 00:59:50 $
Iterator | getIterator() - Getter for property iterator.
|
boolean | hasNext() - Returns true if the underlying iterator has more elements.
|
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(Iterator iterator) - Setter for property iterator.
|
ProxyIterator
public ProxyIterator()
ProxyIterator
public ProxyIterator(Iterator iterator)
Constructs a new ProxyIterator
that will use the
given iterator.
iterator
- the underlying iterator
getIterator
public Iterator getIterator()
Getter for property iterator.
- Value of property iterator.
hasNext
public boolean hasNext()
Returns true if the underlying iterator has more elements.
- true if the underlying iterator has more elements
next
public Object next()
Returns the next element from the underlying iterator.
- the next element from the underlying iterator
remove
public void remove()
Removes the last returned element from the collection that spawned
the underlying iterator.
setIterator
public void setIterator(Iterator iterator)
Setter for property iterator.
iterator
- New value of property iterator.
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.