public class TransformIterator<E,V>
extends java.lang.Object
implements java.util.Iterator<V>
Iterator
implementation; these iterators apply a unary
function to each object before it is returned.
Created on Feb 4, 2004 at 4:48:14 PM.
Constructor and Description |
---|
TransformIterator(java.util.Iterator<E> i,
UnaryFunction<E,V> txForm) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
DOCUMENTME
|
V |
next()
DOCUMENTME
|
void |
remove()
DOCUMENTME
|
public TransformIterator(java.util.Iterator<E> i, UnaryFunction<E,V> txForm)
public boolean hasNext()
hasNext
in interface java.util.Iterator<V>
public V next()
next
in interface java.util.Iterator<V>
public void remove()
remove
in interface java.util.Iterator<V>