net.sf.jga.algorithms
Class Transform.BinaryIterator<T1,T2,R>
java.lang.Object
net.sf.jga.algorithms.Transform.BinaryIterator<T1,T2,R>
- All Implemented Interfaces:
- java.util.Iterator<R>
- Enclosing class:
- Transform
public static class Transform.BinaryIterator<T1,T2,R>
- extends java.lang.Object
- implements java.util.Iterator<R>
Iterator that applies a given BinaryFunctor to corresponding pairs of elements
from a pair of iterators, returning the results.
Constructor Summary |
Transform.BinaryIterator(java.util.Iterator<? extends T1> i1,
java.util.Iterator<? extends T2> i2,
BinaryFunctor<T1,T2,R> bf)
Builds a TransformBinaryIterator that applies the given functor to
corresponding elements of the given base iterators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transform.BinaryIterator
public Transform.BinaryIterator(java.util.Iterator<? extends T1> i1,
java.util.Iterator<? extends T2> i2,
BinaryFunctor<T1,T2,R> bf)
- Builds a TransformBinaryIterator that applies the given functor to
corresponding elements of the given base iterators.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<R>
next
public R next()
- Specified by:
next
in interface java.util.Iterator<R>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<R>
Copyright © 2002-2006 David A. Hall. All Rights Reserved.