jut.lang
Interface ParamCallable<S,T>

All Known Implementing Classes:
Counter, DirectoryTree.DirFilter

public interface ParamCallable<S,T>

interface providing a common protocol for objects that wish to execute code with one parameter and return a result to the caller.

this class solves the problem that in the standard JDK there is no Callable with a parameter.

Author:
Georg Dietrich
See Also:
Callable

Method Summary
 S call(T param)
          execute code with one parameter and return a result. unlike Callable.call(), this method does not declare an exception.
 

Method Detail

call

S call(T param)
execute code with one parameter and return a result. unlike Callable.call(), this method does not declare an exception.

Parameters:
param - - the parameter to hand over.
Returns:
the result of the code executed.