org.apache.commons.collections
Class ProxyIterator
java.lang.Object
|
+--org.apache.commons.collections.ProxyIterator
- All Implemented Interfaces:
- Iterator
- Direct Known Subclasses:
- FilterIterator, TransformIterator
- public class ProxyIterator
- extends Object
- implements Iterator
A Proxy Iterator
which delegates its methods to a proxy instance.
- Author:
- James Strachan
ProxyIterator
public ProxyIterator()
ProxyIterator
public ProxyIterator(Iterator iterator)
getIterator
public Iterator getIterator()
- Getter for property iterator.
- Returns:
- Value of property iterator.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
setIterator
public void setIterator(Iterator iterator)
- Setter for property iterator.
- Parameters:
iterator
- New value of property iterator.
Copyright © 2001 Apache Software Foundation. Documenation generated July 14 2001.