Interface UFunErr<R,E extends Throwable>

Type Parameters:
R - Value returned by the function
E - execution error
All Known Subinterfaces:
UFunErrSafe<R,E>
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 UFunErr<R,E extends Throwable>
Representation of a method in Java. Although called a function, it works very similar to a method, and it is possible to reference one via referencing or lambda expressions.
  • Method Details

    • invoke

      R invoke() throws E
      Method that invokes the behavior of the function. This method takes the necessary parameters and returns the defined result.
      Returns:
      function call result
      Throws:
      E - error if something goes wrong