com.hazelcast.jet.function

## Interface ConsumerEx<T>

- All Superinterfaces:
    Consumer<T>, Serializable
  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 ConsumerEx<T>
      extends Consumer<T>, Serializable

  `Serializable` variant of `java.util.function.Consumer` which declares checked exception.
  Since:
    3.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default void` | `accept(T t)`
    `void` | `acceptEx(T t)` Exception-declaring version of `Consumer.accept(T)`
    `default ConsumerEx<T>` | `andThen(ConsumerEx<? super T> after)` `Serializable` variant of `java.util.function.Consumer#andThen(Consumer)`.
    `static <T> ConsumerEx<T>` | `noop()` Returns a consumer that does nothing.

    - ### Methods inherited from interface java.util.function.Consumer

      `andThen`

- - ### Method Detail

    - #### acceptEx

          void acceptEx(T t)
                 throws Exception

      Exception-declaring version of `Consumer.accept(T)`
      Throws:
        `Exception`

    - #### accept

          default void accept(T t)

      Specified by:
        `accept` in interface `Consumer<T>`

    - #### andThen

          default ConsumerEx<T> andThen(ConsumerEx<? super T> after)

      `Serializable` variant of `java.util.function.Consumer#andThen(Consumer)`.

    - #### noop

          static <T> ConsumerEx<T> noop()

      Returns a consumer that does nothing.

Copyright © 2020. All rights reserved.