| net.sf.jga.fn.adaptor.Identity
Identity | public class Identity extends UnaryFunctor (Code) | | Unary Functor that returns the runtime argument.
Copyright © 2002-2005 David A. Hall
author: David A. Hall |
Method Summary | |
public void | accept(net.sf.jga.fn.Visitor v) Calls the Visitor's visit(Identity) method, if it
implements the nested Visitor interface. | public T | arg() Returns the last argument that was given, or null if called prior to the
first call to fn(). | public T | fn(T x) Given one argument, returns it. | public String | toString() |
serialVersionUID | final static long serialVersionUID(Code) | | |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Identity) method, if it
implements the nested Visitor interface.
|
arg | public T arg()(Code) | | Returns the last argument that was given, or null if called prior to the
first call to fn(). This value does not persist when the functor is
serialized.
the last argument that was given or null. |
fn | public T fn(T x)(Code) | | Given one argument, returns it.
x |
|
|