Interface CheckedConsumer<T>

All Superinterfaces:
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 CheckedConsumer<T> extends Consumer<T>
A consumer which wraps all exceptions in runtime exceptions so that expressions throwing checked exceptions can be nicely used in the Stream API
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(T t)
     
    void
     

    Methods inherited from interface java.util.function.Consumer

    andThen