Top Description Methods
io.smallrye.common.function

public Interface ExceptionObjLongConsumer<T, E extends Exception>

Annotations
@FunctionalInterface
Type Parameters
<T>
the object argument type
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

A two-argument object and long integer consumer which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public void
accept(T
the first argument
t
,
long
the second argument
value
)

Performs this operation on the given arguments.

public default ExceptionObjLongConsumer<T, E>

Returns:

a consumer which passes the values to this consumer and then the given consumer
andThen
(ExceptionObjLongConsumer<? super T, ? extends E>
the next consumer (must not be null)
after
)

Returns a consumer which passes the values to this consumer and then the given consumer.

public default ExceptionObjLongConsumer<T, E>

Returns:

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

Returns a consumer which passes the values to the given consumer and then this consumer.

Method Detail

acceptback to summary
public void accept(T t, long value) throws ExceptionPredicate:E

Performs this operation on the given arguments.

Parameters
t:T

the first argument

value:long

the second argument

Exceptions
ExceptionPredicate:E:
if an exception occurs
andThenback to summary
public 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:ExceptionObjLongConsumer<? super T, ? extends E>

the next consumer (must not be null)

Returns:ExceptionObjLongConsumer<T, E>

a consumer which passes the values to this consumer and then the given consumer

composeback to summary
public 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:ExceptionObjLongConsumer<? super T, ? extends E>

the previous consumer (must not be null)

Returns:ExceptionObjLongConsumer<T, E>

a consumer which passes the values to the given consumer and then this consumer