|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.algorithms.Transform.TransformIterator<T,R>
public static class Transform.TransformIterator<T,R>
Constructor Summary | |
---|---|
Transform.TransformIterator(java.util.Iterator<? extends T> iter,
UnaryFunctor<T,R> fn)
Builds a TransformIterator that applies the given functor to each element of the given base iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
|
R |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transform.TransformIterator(java.util.Iterator<? extends T> iter, UnaryFunctor<T,R> fn)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<R>
public R next()
next
in interface java.util.Iterator<R>
public void remove()
remove
in interface java.util.Iterator<R>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |