Interface RefConsumerWithThrows<I, T extends Throwable>

Type Parameters:
I - The type of the input parameter.
T - The Throwable that may be thrown by the consumer.
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 RefConsumerWithThrows<I, T extends Throwable>
A consumer that accepts an Object.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(I e)
    Performs this operation.
  • Method Details

    • accept

      void accept(I e) throws T
      Performs this operation.
      Parameters:
      e - The argument.
      Throws:
      T - If an exception occurs