Interface ThrowingConsumer<T>

  • All Superinterfaces:
    java.util.function.Consumer<T>
    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>
    extends java.util.function.Consumer<T>
    Created by julien on 6/21/16.
    • Method Detail

      • accept

        default void accept​(T t)
        Specified by:
        accept in interface java.util.function.Consumer<T>
      • compose

        default <V> ThrowingConsumer<V> compose​(java.util.function.Function<? super V,​? extends T> before)
      • andThen

        default ThrowingConsumer<T> andThen​(java.util.function.Consumer<? super T> after)
        Specified by:
        andThen in interface java.util.function.Consumer<T>