Interface ThrowingBiConsumer<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 ThrowingBiConsumer<T,​U>
    Like BiConsumer but can throw checked exceptions.
    • Method Detail

      • accept

        void accept​(T var1,
                    U var2)
             throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • wrap

        static <T,​U> java.util.function.BiConsumer<T,​U> wrap​(ThrowingBiConsumer<T,​U> fn)
      • asBiConsumer

        default java.util.function.BiConsumer<T,​U> asBiConsumer()