Interface ExceptionObjIntConsumer<T,E extends Exception>

Type Parameters:
T - the object argument type
E - the 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 ExceptionObjIntConsumer<T,E extends Exception>
A two-argument object and integer consumer which can throw an exception.
  • Method Details

    • accept

      void accept(T t, int value) throws E
      Performs this operation on the given arguments.
      Parameters:
      t - the first argument
      value - the second argument
      Throws:
      E - if an exception occurs
    • andThen

      default ExceptionObjIntConsumer<T,E> andThen(ExceptionObjIntConsumer<? super T,? extends E> after)
      Returns a consumer which passes its arguments to this consumer followed by the given consumer.
      Parameters:
      after - the other consumer (must not be null)
      Returns:
      a consumer which passes its arguments to this consumer followed by the given consumer
    • compose

      default ExceptionObjIntConsumer<T,E> compose(ExceptionObjIntConsumer<? super T,? extends E> before)
      Returns a consumer which passes its arguments to the given consumer followed by this consumer.
      Parameters:
      before - the other consumer (must not be null)
      Returns:
      a consumer which passes its arguments to the given consumer followed by this consumer
    • andThen

      default ExceptionObjIntConsumer<T,E> andThen(ExceptionObjLongConsumer<? super T,? extends E> after)
      Returns a consumer which passes its arguments to this consumer followed by the given consumer.
      Parameters:
      after - the other consumer (must not be null)
      Returns:
      a consumer which passes its arguments to this consumer followed by the given consumer
    • compose

      default ExceptionObjIntConsumer<T,E> compose(ExceptionObjLongConsumer<? super T,? extends E> before)
      Returns a consumer which passes its arguments to the given consumer followed by this consumer.
      Parameters:
      before - the other consumer (must not be null)
      Returns:
      a consumer which passes its arguments to the given consumer followed by this consumer