Interface Lifecycle.ThrowingFunction<A,R,E extends Exception>

Type Parameters:
A - the argument type
R - the return type
E - the exception type
Enclosing class:
Lifecycle
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 static interface Lifecycle.ThrowingFunction<A,R,E extends Exception>
A function which takes an argument and can throw an exception.
  • Method Summary

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

    • apply

      R apply(A arg) throws E
      Applies this function to the given argument.
      Parameters:
      arg - the function argument
      Returns:
      the function result
      Throws:
      E - if an error occurs while applying the function