org.graffiti.util
Interface Callback<S,T>

Type Parameters:
S - The return type of #call(Object).
T - The type of the parameter passed to #call(Object).

public interface Callback<S,T>

Classes implementing Callback employ the Inversion of Control pattern. If the method to be called back should not return a value, they can rather implement VoidCallback.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner

Method Summary
 S call(T t)
          The method to be called by the recipient of this object.
 

Method Detail

call

S call(T t)
The method to be called by the recipient of this object.

Parameters:
t - random parameter. Its semantics must be defined by the class implementing Callback.
Returns:
a random return value. Its semantics must be defined by the class implementing Callback.


Generated at 2012-05-30 11:00:36 PM CEST