Interface ThrowingBiConsumer<I1,I2,T extends Throwable>

Type Parameters:
I1 - the type of the first argument to the operation
I2 - the type of the second argument to the operation
T - the type of the exception the accept method may throw
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 ThrowingBiConsumer<I1,I2,T extends Throwable>
Represents an operation that accepts two input arguments and returns no result and may thrown an exception.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(I1 i1, I2 i2)
    Performs this operation on the given arguments, potentially throwing an exception.
  • Method Details

    • accept

      void accept(I1 i1, I2 i2) throws T
      Performs this operation on the given arguments, potentially throwing an exception.
      Parameters:
      i1 - the first function argument
      i2 - the first function argument
      Throws:
      T - the exception that may be thrown