Class Promise
java.lang.Object
net.officefloor.frame.impl.execute.function.Promise
Provides promise like functionality for
FunctionState instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionStatethen(FunctionState function, FunctionState thenFunction) Execute theFunctionStatethen theFunctionState.
-
Method Details
-
then
Execute the
FunctionStatethen theFunctionState.State is passed between
FunctionStateinstances viaManagedObjectinstances, so no parameter is provided.- Parameters:
function-FunctionStateto execute it and its sequence ofFunctionStateinstances. May benull.thenFunction-FunctionStateto then continue after the first inputFunctionStatesequence completes. May benull.- Returns:
- Next
FunctionStateto undertake theFunctionStatesequence and then continueFunctionStatesequence. Will returnnullif both inputs arenull.
-