net.sf.jga.fn
public interface UnaryFunctor<T,R> extends Serializable, Visitable
T
, and the
result is of type R
Copyright © 2002 David A. Hall
Method Summary | |
---|---|
<F> UnaryFunctor<F,R> | compose(UnaryFunctor<F,T> f)
FactoryMethod that creates a UnaryFunctor that passes its argument to
the given functor, and uses the result as the argument to this
function. |
<F1,F2> BinaryFunctor<F1,F2,R> | compose(BinaryFunctor<F1,F2,T> f)
FactoryMethod that creates a BinaryFunctor that passes its arguments to
the given functor, and uses the result as the argument to this
function. |
R | fn(T arg)
Executes the function and returns the result. |
fnthis(f(x)))