se.lth.cs.nlp.nlputils.core
Class Function<T1,T2>

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.core.Function<T1,T2>

public abstract class Function<T1,T2>
extends Object

A callable one-argument function from T1 to T2.

Author:
Richard Johansson (richard@cs.lth.se)

Field Summary
protected  Object in
          Initiation parameter.
 
Constructor Summary
Function()
          Initiates the function.
Function(Object in)
          Initiates the function with a parameter.
 
Method Summary
abstract  T2 apply(T1 t)
          Calls this function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected Object in
Initiation parameter.

Constructor Detail

Function

public Function()
Initiates the function.


Function

public Function(Object in)
Initiates the function with a parameter.

Parameters:
in - an initiation parameter.
Method Detail

apply

public abstract T2 apply(T1 t)
Calls this function.

Parameters:
t - the parameter.