Interface ThrowingConsumer<T,​E extends java.lang.Throwable>

  • 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 ThrowingConsumer<T,​E extends java.lang.Throwable>
    Class used to use a Consumer throwing a checked exception
    • Method Detail

      • accept

        void accept​(T t)
             throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable
      • execute

        static <T,​E extends java.lang.Throwable> java.util.function.Consumer<T> execute​(ThrowingConsumer<T,​E> consumer)