Interface Lifecycle.ThrowingConsumer<A,E extends Exception>

Type Parameters:
A - the argument 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.ThrowingConsumer<A,E extends Exception>
A method which takes an argument and can throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(A arg)
    Performs this operation on the given argument.
  • Method Details

    • accept

      void accept(A arg) throws E
      Performs this operation on the given argument.
      Parameters:
      arg - the input argument
      Throws:
      E - if an error occurs while executing the operation