Top Description Methods
io.smallrye.common.function

public Interface ExceptionLongFunction<R, E extends Exception>

Annotations
@FunctionalInterface
Type Parameters
<R>
the result type
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

A one-argument long integer function which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default <
the result type
R2
>
ExceptionLongFunction<R2, E>

Returns:

a function which applies the result of this function to another function
andThen
(ExceptionFunction<? super R, ? extends R2, ? extends E>
the other function (must not be null)
after
)

Returns a function which applies the result of this function to another function.

public R

Returns:

the function result
apply
(long
the argument
value
)

Applies this function to the given arguments.

public default <
the initial argument type
T
>
ExceptionFunction<T, R, E>

Returns:

a function which applies the result of another function to this function
compose
(ExceptionToLongFunction<? super T, ? extends E>
the other function (must not be null)
before
)

Returns a function which applies the result of another function to this function.

Method Detail

andThenback to summary
public default <R2> ExceptionLongFunction<R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)

Returns a function which applies the result of this function to another function.

Parameters
<R2>
the result type
after:ExceptionFunction<? super R, ? extends R2, ? extends E>

the other function (must not be null)

Returns:ExceptionLongFunction<R2, E>

a function which applies the result of this function to another function

applyback to summary
public R apply(long value) throws ExceptionPredicate:E

Applies this function to the given arguments.

Parameters
value:long

the argument

Returns:R

the function result

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

Returns a function which applies the result of another function to this function.

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

the other function (must not be null)

Returns:ExceptionFunction<T, R, E>

a function which applies the result of another function to this function