| net.sf.jga.fn.adaptor.Bind1st
All known Subclasses: net.sf.jga.fn.AdaptorVisitor,
Bind1st | public class Bind1st extends UnaryFunctor (Code) | | UnaryFunctor that wraps a given BinaryFunctor, passing a constant value
as the first argument of the child functor. The runtime argument is passed
as the second argument of the child functor.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | Bind1st(T1 constant, BinaryFunctor<T1, T2, R> fn) Builds a Bind1st 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(Bind1st) method, if it
implements the nested Visitor interface.
|
fn | public R fn(T2 x)(Code) | | Given one argument, passes the constant value and the argument to the
child functor and returns the result.
f(c,x) |
getConstant | public T1 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 |
|
|