Interface ThrowableConsumer<T,E extends Throwable>

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 ThrowableConsumer<T,E extends Throwable> extends Consumer<T>
  • Method Summary

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

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • accept

      default void accept(T t)
      Specified by:
      accept in interface Consumer<T>
    • acceptNow

      void acceptNow(T var1) throws E
      Throws:
      E