F - The type of Function wrapped by the context.public abstract static class FunctionContext.Builder<F extends Function> extends Object
FunctionContext.| Constructor and Description |
|---|
Builder(FunctionContext<F> context)
Create a
Builder to configure a FunctionContext. |
| Modifier and Type | Method and Description |
|---|---|
FunctionContext<F> |
build()
Build the
FunctionContext configured by this Builder. |
FunctionContext.Builder<F> |
execute(F function)
Sets the
Function to be wrapped by the context and returns this
Builder for further configuration. |
FunctionContext<F> |
getContext()
Get the
FunctionContext configured by this Builder. |
boolean |
isExecuted()
Tests whether the
Function to be wrapped has been configured. |
public Builder(FunctionContext<F> context)
Builder to configure a FunctionContext.context - FunctionContext to be configured.public FunctionContext.Builder<F> execute(F function)
Function to be wrapped by the context and returns this
Builder for further configuration.function - Function to be wrapped by the context.Builder.public boolean isExecuted()
Function to be wrapped has been configured.aggregate(F) is called, then true.public FunctionContext<F> build()
FunctionContext configured by this Builder.FunctionContextpublic FunctionContext<F> getContext()
FunctionContextCopyright © 2017. All rights reserved.