Interface ConsumerE<T,Ex extends Throwable>

Type Parameters:
Ex - An arbitrary exception type that may be thrown
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 ConsumerE<T,Ex extends Throwable>
A consumer that is allowed to throw a checked exception.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
     
    default ConsumerE<T,Ex>
    andThen(ConsumerE<? super T,? extends Ex> after)
     
  • Method Details

    • accept

      void accept(T t) throws Ex
      Throws:
      Ex
    • andThen

      default ConsumerE<T,Ex> andThen(ConsumerE<? super T,? extends Ex> after) throws Ex
      Throws:
      Ex