Interface ExceptionObjLongConsumer<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 ExceptionObjLongConsumer<T,E extends Exception>
A two-argument object and long integer consumer which can throw an exception.
  • Method Details

    • accept

      void accept(T t, long 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 ExceptionObjLongConsumer<T,E> andThen(ExceptionObjLongConsumer<? super T,? extends E> after)
      Returns a consumer which passes the values to this consumer and then the given consumer.
      Parameters:
      after - the next consumer (must not be null)
      Returns:
      a consumer which passes the values to this consumer and then the given consumer
    • compose

      default ExceptionObjLongConsumer<T,E> compose(ExceptionObjLongConsumer<? super T,? extends E> before)
      Returns a consumer which passes the values to the given consumer and then this consumer.
      Parameters:
      before - the previous consumer (must not be null)
      Returns:
      a consumer which passes the values to the given consumer and then this consumer