Interface Callbacks.FailableBiConsumer<T,U>

Type Parameters:
T - The type of the first argument.
U - The type of the second argument.
Enclosing class:
Callbacks
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 Callbacks.FailableBiConsumer<T,U>
Functional interface for a two-argument consumer that can throw an IOException.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u)
    Performs the operation on the given arguments.
    andThen(Callbacks.FailableBiConsumer<? super T,? super U> after)
    Returns a composed IOBiConsumer that performs, in sequence, this operation followed by the after operation.
  • Method Details

    • accept

      void accept(T t, U u) throws IOException
      Performs the operation on the given arguments.
      Parameters:
      t - The first input argument.
      u - The second input argument.
      Throws:
      IOException - If an I/O error occurs.
    • andThen

      default Callbacks.FailableBiConsumer<T,U> andThen(Callbacks.FailableBiConsumer<? super T,? super U> after) throws IOException
      Returns a composed IOBiConsumer that performs, in sequence, this operation followed by the after operation.
      Parameters:
      after - The operation to perform after this operation.
      Returns:
      A composed IOBiConsumer that performs the operations sequentially.
      Throws:
      IOException - If an I/O error occurs.