| net.sf.jga.fn.adaptor.ConstantBinary
ConstantBinary | public class ConstantBinary extends BinaryFunctor (Code) | | Functor that returns the constant value given at construction.
To Serialize a ConstantBinary, the generic parameter V must be serializable.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | ConstantBinary(V val) Builds a Constant functor for the given value. |
Method Summary | |
public void | accept(net.sf.jga.fn.Visitor v) Calls the Visitor's visit(Constant) method, if it
implements the nested Visitor interface. | public V | fn(T1 unused, T2 ignored) Given two arguments, ignores both and returns the constant value given
at construction. | public String | toString() |
serialVersionUID | final static long serialVersionUID(Code) | | |
ConstantBinary | public ConstantBinary(V val)(Code) | | Builds a Constant functor for the given value. The value may be null:
in that case, evaluating the functor will return null.
|
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Constant) method, if it
implements the nested Visitor interface.
|
fn | public V fn(T1 unused, T2 ignored)(Code) | | Given two arguments, ignores both and returns the constant value given
at construction. Neither argument will be evaluated in any way by this
functor.
the constant value given at construction |
|
|