Interface ThrowingConsumer<A>

All Superinterfaces:
Consumer<A>
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<A>
extends Consumer<A>
  • Method Summary

    Modifier and Type Method Description
    default void accept​(A arg)  
    void consume​(A arg)  
    default Consumer<A> safe​(Consumer<? super Exception> errorHandler)  

    Methods inherited from interface java.util.function.Consumer

    andThen