Module io.smallrye.common.function
Package io.smallrye.common.function
Interface ExceptionObjIntConsumer<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 integer consumer which can throw an exception.
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms this operation on the given arguments.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.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.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.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.
-
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
Returns a consumer which passes its arguments to this consumer followed by the given consumer.- Parameters:
after- the other consumer (must not benull)- Returns:
- a consumer which passes its arguments to this consumer followed by the given consumer
-
compose
Returns a consumer which passes its arguments to the given consumer followed by this consumer.- Parameters:
before- the other consumer (must not benull)- Returns:
- a consumer which passes its arguments to the given consumer followed by this consumer
-
andThen
Returns a consumer which passes its arguments to this consumer followed by the given consumer.- Parameters:
after- the other consumer (must not benull)- 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 benull)- Returns:
- a consumer which passes its arguments to the given consumer followed by this consumer
-