net.sf.jga.algorithms
Class Transform.TransformIterable<T,R>
java.lang.Object
net.sf.jga.algorithms.Transform.TransformIterable<T,R>
- All Implemented Interfaces:
- java.lang.Iterable<R>
- Enclosing class:
- Transform
public static class Transform.TransformIterable<T,R>
- extends java.lang.Object
- implements java.lang.Iterable<R>
Produces iterators that will process elements of an iterable resource and present
the results.
Copyright © 2005 David A. Hall
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 |
Transform.TransformIterable
public Transform.TransformIterable(java.lang.Iterable<? extends T> base,
UnaryFunctor<T,R> process)
- Builds a TransformIterable for the given base.
- Throws:
java.lang.IllegalArgumentException
- if the base iterable is null
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.