net.sf.staccatocommons.defs
Interface Executable<T>

Type Parameters:
T - the type of the argument of the computation

public interface Executable<T>

Executables are computations that take one argument and whose result is a side effect, instead of a return value.

Executable has the same semantics that an Applicable of Void return type, but is provided for ease of coding. Concrete implementors should implement Applicable as well.

Author:
flbulgarelli
See Also:
Recomendations for implementing

Method Summary
 void exec(T argument)
          Performs a side-effect computation.
 

Method Detail

exec

void exec(T argument)
Performs a side-effect computation.

Parameters:
argument - the argument of the computation.


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads