Interface ThrowableConsumer<P,E extends Throwable>

Type Parameters:
P - parameter type
E - exception type
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<P,E extends Throwable>
Functional interface which is similar to Consumer but which might throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(P p)
     
  • Method Details

    • accept

      void accept(P p) throws E
      Throws:
      E extends Throwable