se.lth.cs.nlp.nlputils.core
Class Procedure<T>

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.core.Procedure<T>

public abstract class Procedure<T>
extends Object

A callable one-argument procedure.

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

Field Summary
protected  Object in
          Initiation parameter.
 
Constructor Summary
Procedure()
          Initiates the procedure.
Procedure(Object in)
          Initiates the procedure with a parameter.
 
Method Summary
abstract  void apply(T t)
          Calls this procedure.
 
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

Procedure

public Procedure()
Initiates the procedure.


Procedure

public Procedure(Object in)
Initiates the procedure with a parameter.

Parameters:
in - an initiation parameter.
Method Detail

apply

public abstract void apply(T t)
Calls this procedure.

Parameters:
t - the parameter.