Interface TBiConsumer<T,U>

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 TBiConsumer<T,U>
This is a functional interface that can be used to replace BiConsumer and throw exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u)
    Accepts the given arguments and throws an exception.
    default TBiConsumer<T,U>
    andThen(TBiConsumer<? super T,? super U> after)
     
  • Method Details

    • accept

      void accept(T t, U u) throws Throwable
      Accepts the given arguments and throws an exception.
      Parameters:
      t - The first argument
      u - The second argument
      Throws:
      Throwable - The exception
    • andThen

      default TBiConsumer<T,U> andThen(TBiConsumer<? super T,? super U> after)
      Parameters:
      after - The operation to perform after this operation
      Returns:
      A composed TBiConsumer that performs in sequence this operation followed by the after