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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
transform
protected Object transform(Object source)
Copyright © 2001 Apache Software Foundation. Documenation generated April 2 2002.