Top Description Methods
io.smallrye.common.function

public Interface ExceptionToLongFunction<T, E extends Exception>

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

A two-argument function which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default <
the result type
R
>
ExceptionFunction<T, R, E>

Returns:

a function which passes the result of this function through the given function
andThen
(ExceptionLongFunction<R, E>
the function (must not be null)
after
)

Returns a function which passes the result of this function through the given function.

public long

Returns:

the function result
apply
(T
the first argument
t
)

Apply this function to the given arguments.

public default <
the initial argument type
T2
>
ExceptionToLongFunction<T2, E>

Returns:

a function which passes the result of the given function through this function
compose
(ExceptionFunction<? super T2, ? extends T, ? extends E>
the function (must not be null)
before
)

Returns a function which passes the result of the given function through this function.

Method Detail

andThenback to summary
public default <R> ExceptionFunction<T, R, E> andThen(ExceptionLongFunction<R, E> after)

Returns a function which passes the result of this function through the given function.

Parameters
<R>
the result type
after:ExceptionLongFunction<R, E>

the function (must not be null)

Returns:ExceptionFunction<T, R, E>

a function which passes the result of this function through the given function

applyback to summary
public long apply(T t) throws ExceptionPredicate:E

Apply this function to the given arguments.

Parameters
t:T

the first argument

Returns:long

the function result

Exceptions
ExceptionPredicate:E:
if an exception occurs
composeback to summary
public default <T2> ExceptionToLongFunction<T2, E> compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before)

Returns a function which passes the result of the given function through this function.

Parameters
<T2>
the initial argument type
before:ExceptionFunction<? super T2, ? extends T, ? extends E>

the function (must not be null)

Returns:ExceptionToLongFunction<T2, E>

a function which passes the result of the given function through this function