- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An action on the execution context.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContextAction.BiConsumer<T1 extends PsyObject,T2 extends PsyObject> Represents an operation that accepts two input arguments and returns no result.static interfaceContextAction.BiFunction<T1 extends PsyObject,T2 extends PsyObject> Represents a function that accepts two arguments and produces a result.static interfaceContextAction.Consumer<T extends PsyObject>Represents an operation that accepts a single input argument and returns no result.static interfaceContextAction.Function<T extends PsyObject>Represents a function that accepts one argument and produces a result.static interfaceContextAction.OptionalBiFunction<T1 extends PsyObject,T2 extends PsyObject> Represents a function that accepts two arguments and produces an optional result.static interfaceContextAction.OptionalFunction<T extends PsyObject>Represents a function that accepts one argument and produces an optional result.static interfaceRepresents a function that accepts three arguments and produces an optional result.static interfaceRepresents a supplier of results.static interfaceRepresents an operation that accepts three input arguments and returns no result.static interfaceRepresents a function that accepts three arguments and produces a result. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T1 extends PsyObject,T2 extends PsyObject>
ContextActionofBiConsumer(ContextAction.BiConsumer<T1, T2> biConsumer) Returns the context action created from the bi-consumer.static <T1 extends PsyObject,T2 extends PsyObject>
ContextActionofBiFunction(ContextAction.BiFunction<T1, T2> biFunction) Returns the context action created from the bi-function.static <T extends PsyObject>
ContextActionofConsumer(ContextAction.Consumer<T> consumer) Returns the context action created from the consumer.static <T extends PsyObject>
ContextActionofFunction(ContextAction.Function<T> function) Returns the context action created from the function.static <T1 extends PsyObject,T2 extends PsyObject>
ContextActionofOptionalBiFunction(ContextAction.OptionalBiFunction<T1, T2> optionalBiFunction) Returns the context action created from the function.static <T extends PsyObject>
ContextActionofOptionalFunction(ContextAction.OptionalFunction<T> optionalFunction) Returns the context action created from the function.static <T1 extends PsyObject,T2 extends PsyObject, T3 extends PsyObject>
ContextActionofOptionalTriFunction(ContextAction.OptionalTriFunction<T1, T2, T3> optionalTriFunction) Returns the context action created from the function.static ContextActionofSupplier(ContextAction.Supplier supplier) Returns the context action created from the supplier.static <T1 extends PsyObject,T2 extends PsyObject, T3 extends PsyObject>
ContextActionofTriConsumer(ContextAction.TriConsumer<T1, T2, T3> triConsumer) Returns the context action created from the tri-consumer.static <T1 extends PsyObject,T2 extends PsyObject, T3 extends PsyObject>
ContextActionofTriFunction(ContextAction.TriFunction<T1, T2, T3> triFunction) Returns the context action created from the tri-function.voidperform(PsyContext oContext) Performs this action on the specified execution context.
-
Method Details
-
perform
Performs this action on the specified execution context.- Parameters:
oContext- the execution context.- Throws:
PsyErrorException- when an error occurs.
-
ofConsumer
Returns the context action created from the consumer.- Type Parameters:
T- the type of the input to the consumer.- Parameters:
consumer- the consumer.- Returns:
- the context action created from the consumer
-
ofSupplier
Returns the context action created from the supplier.- Parameters:
supplier- the supplier.- Returns:
- the context action created from the supplier
-
ofBiConsumer
static <T1 extends PsyObject,T2 extends PsyObject> ContextAction ofBiConsumer(ContextAction.BiConsumer<T1, T2> biConsumer) Returns the context action created from the bi-consumer.- Type Parameters:
T1- the type of the first input to the bi-consumer.T2- the type of the second input to the bi-consumer.- Parameters:
biConsumer- the bi-consumer.- Returns:
- the context action created from the bi-consumer
-
ofTriConsumer
static <T1 extends PsyObject,T2 extends PsyObject, ContextAction ofTriConsumerT3 extends PsyObject> (ContextAction.TriConsumer<T1, T2, T3> triConsumer) Returns the context action created from the tri-consumer.- Type Parameters:
T1- the type of the first input to the tri-consumer.T2- the type of the second input to the tri-consumer.T3- the type of the third input to the tri-consumer.- Parameters:
triConsumer- the tri-consumer.- Returns:
- the context action created from the tri-consumer
-
ofFunction
Returns the context action created from the function.- Type Parameters:
T- the type of the input to the function.- Parameters:
function- the function.- Returns:
- the context action created from the function
-
ofOptionalFunction
static <T extends PsyObject> ContextAction ofOptionalFunction(ContextAction.OptionalFunction<T> optionalFunction) Returns the context action created from the function.- Type Parameters:
T- the type of the input to the optional function.- Parameters:
optionalFunction- the optional function.- Returns:
- the context action created from the function
-
ofOptionalBiFunction
static <T1 extends PsyObject,T2 extends PsyObject> ContextAction ofOptionalBiFunction(ContextAction.OptionalBiFunction<T1, T2> optionalBiFunction) Returns the context action created from the function.- Type Parameters:
T1- the type of the first input to the optional function.T2- the type of the second input to the optional function.- Parameters:
optionalBiFunction- the optional function.- Returns:
- the context action created from the function
-
ofOptionalTriFunction
static <T1 extends PsyObject,T2 extends PsyObject, ContextAction ofOptionalTriFunctionT3 extends PsyObject> (ContextAction.OptionalTriFunction<T1, T2, T3> optionalTriFunction) Returns the context action created from the function.- Type Parameters:
T1- the type of the first input to the optional function.T2- the type of the second input to the optional function.T3- the type of the third input to the optional function.- Parameters:
optionalTriFunction- the optional function.- Returns:
- the context action created from the function
-
ofBiFunction
static <T1 extends PsyObject,T2 extends PsyObject> ContextAction ofBiFunction(ContextAction.BiFunction<T1, T2> biFunction) Returns the context action created from the bi-function.- Type Parameters:
T1- the type of the first input to the bi-function.T2- the type of the second input to the bi-function.- Parameters:
biFunction- the bi-function.- Returns:
- the context action created from the bi-function
-
ofTriFunction
static <T1 extends PsyObject,T2 extends PsyObject, ContextAction ofTriFunctionT3 extends PsyObject> (ContextAction.TriFunction<T1, T2, T3> triFunction) Returns the context action created from the tri-function.- Type Parameters:
T1- the type of the first input to the tri-function.T2- the type of the second input to the tri-function.T3- the type of the third input to the tri-function.- Parameters:
triFunction- the tri-function.- Returns:
- the context action created from the tri-function
-