Interface ThrowingBiConsumer<T,U>

Type Parameters:
T - first input
U - second input
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<T,U>
Like BiConsumer<T, U> but allows checked exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u)
    Performs the action.
  • Method Details

    • accept

      void accept(T t, U u) throws Exception
      Performs the action.
      Parameters:
      t - first value
      u - second value
      Throws:
      Exception - if any error occurs