fr.ens_cachan.dptinfo.util
Class Function<A,B>

java.lang.Object
  extended by fr.ens_cachan.dptinfo.util.Function<A,B>

public abstract class Function<A,B>
extends java.lang.Object

An interface for generic functions from type A to type B.


Constructor Summary
Function()
           
 
Method Summary
abstract  B call(A a)
          Calls this Function.
<C> Function<A,C>
compose(Function<? super B,C> f)
          Composes this Function with another one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Function

public Function()
Method Detail

call

public abstract B call(A a)
Calls this Function.

Parameters:
a - the argument to this function.
Returns:
the result of this function on a.

compose

public <C> Function<A,C> compose(Function<? super B,C> f)
Composes this Function with another one.

Parameters:
f - another Function.
Returns:
the compostion this o f.