Interface WorkflowFunction<A,R,T extends Throwable>

Type Parameters:
A - the type of the input to the function
R - the type of the result of the function
T - the type of exception that may be thrown
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WorkflowFunction<A,R,T extends Throwable>
A functional interface that represents a function that takes one argument and returns a result, potentially throwing a checked exception. This is similar to Java's Function but allows for checked exceptions.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(A t)
    Applies this function to the given argument.
  • Method Details

    • apply

      R apply(A t) throws T
      Applies this function to the given argument.
      Parameters:
      t - the function argument
      Returns:
      the function result
      Throws:
      T - if the function execution fails