|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParameterizedRunnable
Like a Runnable
, an object which captures a block of code which can
be passed around and executed. Unlike standard runnables, paramaterized
runnables allow an arbitrary Object
to be passed in when the
block is evaluated.
Clients may implement this interface.
Method Summary | |
---|---|
java.lang.Object |
run(java.lang.Object context)
Executes the block of code encapsulated by this runnable in the context of the given object and returns the result. |
Method Detail |
---|
java.lang.Object run(java.lang.Object context) throws java.lang.Exception
null
.
context
- the context for evaluating the runnable
java.lang.Exception
- if there is a problem running this runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |