| net.sf.jga.fn.algorithm.TransformUnary
TransformUnary | public class TransformUnary extends UnaryFunctor,TransformIterator> (Code) | | Applies a UnaryFunctor to every element in an iteration, and iterates
over the results.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | TransformUnary(UnaryFunctor<T, R> fn) Builds an TransformUnary functor that will apply the given functor to
elements in an iteration. |
serialVersionUID | final static long serialVersionUID(Code) | | |
TransformUnary | public TransformUnary(UnaryFunctor<T, R> fn)(Code) | | Builds an TransformUnary functor that will apply the given functor to
elements in an iteration.
throws: IllegalArgumentException - if the functor is null |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(TransformUnary) method, if it
implements the nested Visitor interface.
|
fn | public TransformIterator<T, R> fn(Iterator<? extends T> iterator)(Code) | | Apply the functor to each element in the iteration and return an iterator
over the results
an iterator over the results of the transformation |
getFunction | public UnaryFunctor<T, R> getFunction()(Code) | | Returns the functor used to process elements in an iteration.
|
|
|