net.sf.jga.algorithms
Class Transform.BinaryIterable<T1,T2,R>

java.lang.Object
  extended by net.sf.jga.algorithms.Transform.BinaryIterable<T1,T2,R>
All Implemented Interfaces:
java.lang.Iterable<R>
Enclosing class:
Transform

public static class Transform.BinaryIterable<T1,T2,R>
extends java.lang.Object
implements java.lang.Iterable<R>

Produces iterators that applies a given BinaryFunctor to corresponding pairs of elements from a pair of iterators, returning the results.


Constructor Summary
Transform.BinaryIterable(java.lang.Iterable<? extends T1> base1, java.lang.Iterable<? extends T2> base2, BinaryFunctor<T1,T2,R> process)
          Builds a TransformIterable for the given base.
 
Method Summary
 java.util.Iterator<R> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transform.BinaryIterable

public Transform.BinaryIterable(java.lang.Iterable<? extends T1> base1,
                                java.lang.Iterable<? extends T2> base2,
                                BinaryFunctor<T1,T2,R> process)
Builds a TransformIterable for the given base.

Throws:
java.lang.IllegalArgumentException - if the base iterable is null
Method Detail

iterator

public java.util.Iterator<R> iterator()
Specified by:
iterator in interface java.lang.Iterable<R>


Copyright © 2002-2006 David A. Hall. All Rights Reserved.