| net.sf.jga.fn.algorithm.TransformAdjacent
TransformAdjacent | public class TransformAdjacent extends UnaryFunctor,TransformAdjacentIterator> (Code) | | Applies a UnaryFunctor to every element in an iteration, and iterates
over the results.
Copyright © 2004-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | TransformAdjacent(BinaryFunctor<T, T, R> fn) Builds an TransformAdjacent functor that will apply the given functor to
elements in an iteration. |
serialVersionUID | final static long serialVersionUID(Code) | | |
TransformAdjacent | public TransformAdjacent(BinaryFunctor<T, T, R> fn)(Code) | | Builds an TransformAdjacent 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(TransformAdjacent) method, if it
implements the nested Visitor interface.
|
fn | public TransformAdjacentIterator<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 BinaryFunctor<T, T, R> getFunction()(Code) | | Returns the functor used to process elements in an iteration.
|
|
|