Top Description Methods
org.wildfly.common.function

public Interface ExceptionIntFunction<R, E extends java.lang.Exception>

Annotations
@FunctionalInterface
Imports
org.wildfly.common.Assert

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

Method Summary

Modifier and TypeMethod and Description
public default <R2> ExceptionIntFunction<R2, E>
andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)

public R

Returns:

the function result
apply
(int
the argument
value
)

Applies this function to the given arguments.

public default <T> ExceptionFunction<T, R, E>
compose(ExceptionToIntFunction<? super T, ? extends E> before)

Method Detail

andThenback to summary
public default <R2> ExceptionIntFunction<R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)
applyback to summary
public R apply(int value) throws ExceptionBiConsumer:E

Applies this function to the given arguments.

Parameters
value:int

the argument

Returns:R

the function result

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