Interface ThrowingBiConsumer<A,​B>

Type Parameters:
A - the type of the first argument to the operation.
B - the type of the second argument to the operation.
All Superinterfaces:
BiConsumer<A,​B>
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<A,​B> extends BiConsumer<A,​B>
Represents an operation that accepts two input arguments and returns no result. This is the throwing specialization of BiConsumer.

This is a functional interface whose functional method is accept(Object, Object).

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept​(A a, B b)
     
    void
    acceptThrows​(A a, B b)
    Performs this operation on the given arguments.

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Method Details

    • acceptThrows

      void acceptThrows(A a, B b) throws RuntimeException
      Performs this operation on the given arguments.
      Parameters:
      a - the first input argument.
      b - the second input argument.
      Throws:
      RuntimeException - Thrown if any exception happens during lambda execution.
    • accept

      default void accept(A a, B b)
      Specified by:
      accept in interface BiConsumer<A,​B>