net.sf.jga.fn.adaptor
public class Identity<T> extends AbstractUnaryFunctor<T,T> implements Serializable
Copyright © 2002 David A. Hall
Nested Class Summary | |
---|---|
interface | Identity.Visitor
Interface for classes that may interpret an Identity functor. |
Method Summary | |
---|---|
void | accept(Visitor v)
Calls the Visitor's visit(Identity) method, if it
implements the nested Visitor interface. |
T | fn(T x)
Given one argument, returns it.
|
String | toString() |
visit(Identity)
method, if it
implements the nested Visitor interface.Returns: x