Module io.smallrye.common.function
Package io.smallrye.common.function
Interface ExceptionObjLongConsumer<T,E extends Exception>
- Type Parameters:
T- the object argument typeE- 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.
A two-argument object and long integer consumer which can throw an exception.
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms this operation on the given arguments.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.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.
-
Method Details
-
accept
Performs this operation on the given arguments.- Parameters:
t- the first argumentvalue- 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 benull)- 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 benull)- Returns:
- a consumer which passes the values to the given consumer and then this consumer
-