org.apache.commons.collections
Class TransformIterator
java.lang.Object
|
+--org.apache.commons.collections.ProxyIterator
|
+--org.apache.commons.collections.TransformIterator
- All Implemented Interfaces:
- Iterator
- public class TransformIterator
- extends ProxyIterator
A Proxy Iterator
which uses a Transformer
instance to
transform the contents of the Iterator
into some other form
- Author:
- James Strachan
TransformIterator
public TransformIterator()
TransformIterator
public TransformIterator(Iterator iterator)
TransformIterator
public TransformIterator(Iterator iterator,
Transformer transformer)
getTransformer
public Transformer getTransformer()
- Getter for property transformer.
- Returns:
- Value of property transformer.
next
public Object next()
- Overrides:
next
in class ProxyIterator
setTransformer
public void setTransformer(Transformer transformer)
- Setter for property transformer.
- Parameters:
transformer
- New value of property transformer.
Copyright © 2001 Apache Software Foundation. Documenation generated July 14 2001.