Top Description Methods
org.wildfly.common.function

public Interface ExceptionToLongFunction<T, E extends java.lang.Exception>

Annotations
@FunctionalInterface
Imports
org.wildfly.common.Assert

A two-argument function which can throw an exception.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public default <R> ExceptionFunction<T, R, E>
public long

Returns:

the function result
apply
(T
the first argument
t
)

Apply this function to the given arguments.

public default <T2> ExceptionToLongFunction<T2, E>
compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before)

Method Detail

andThenback to summary
public default <R> ExceptionFunction<T, R, E> andThen(ExceptionLongFunction<R, E> after)
applyback to summary
public long apply(T t) throws ExceptionBiConsumer:E

Apply this function to the given arguments.

Parameters
t:T

the first argument

Returns:long

the function result

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