| net.sf.jga.fn.adaptor.Distribute
All known Subclasses: net.sf.jga.fn.AdaptorVisitor,
Distribute | public class Distribute extends BinaryFunctor (Code) | | Binary Functor that passes its two arguments to two inner Unary Functors,
and uses the results as arguments to an outer Binary Functor. This allows
for the construction of compound functors from the primitives found in the
arithmetic, logical, property, and comparison packages.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
serialVersionUID | final static long serialVersionUID(Code) | | |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Distribute) method, if it
implements the nested Visitor interface.
|
fn | public R fn(T1 x, T2 y)(Code) | | Passes arguments x and y to the corresponding inner
functors, and passes the results of those functors to the outer functor.
h(f(x), g(y)) |
getFirstInnerFunctor | public UnaryFunctor<T1, F1> getFirstInnerFunctor()(Code) | | Returns the first of two inner functors
the first of two inner functors |
getOuterFunctor | public BinaryFunctor<F1, F2, R> getOuterFunctor()(Code) | | Returns the outer functor
the outer functor |
getSecondInnerFunctor | public UnaryFunctor<T2, F2> getSecondInnerFunctor()(Code) | | Returns the second of two inner functors
the second of two inner functors |
|
|