| net.sf.jga.fn.adaptor.Bind2nd
All known Subclasses: net.sf.jga.fn.AdaptorVisitor,
Bind2nd | public class Bind2nd extends UnaryFunctor (Code) | | UnaryFunctor that wraps a given BinaryFunctor, passing a constant value
as the second argument of the child functor. The runtime argument is passed
as the first argument of the child functor.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | Bind2nd(T2 constant, BinaryFunctor<T1, T2, R> fn) Builds a Bind2nd Functor with the given contant and child functor. |
serialVersionUID | final static long serialVersionUID(Code) | | |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Bind2nd) method, if it
implements the nested Visitor interface.
|
fn | public R fn(T1 x)(Code) | | Given one argument, passes the argument and the constant value to the
child functor and returns the result.
f(x,c) |
getConstant | public T2 getConstant()(Code) | | Returns the constant value
the constant value |
getFunctor | public BinaryFunctor<T1, T2, R> getFunctor()(Code) | | Returns the child functor for this functor
the child functor for this functor |
|
|