@FunctionalInterface
public interface ExceptionToIntFunction<T,E extends java.lang.Exception>
Modifier and Type | Method and Description |
---|---|
default <R> ExceptionFunction<T,R,E> |
andThen(ExceptionIntFunction<? extends R,? extends E> after) |
default <R> ExceptionFunction<T,R,E> |
andThen(ExceptionLongFunction<? extends R,? extends E> after) |
int |
apply(T t)
Apply this function to the given arguments.
|
default <T2> ExceptionToIntFunction<T2,E> |
compose(ExceptionFunction<? super T2,? extends T,? extends E> before) |
int apply(T t) throws E extends java.lang.Exception
t
- the first argumentE
- if an exception occursE extends java.lang.Exception
default <R> ExceptionFunction<T,R,E> andThen(ExceptionIntFunction<? extends R,? extends E> after)
default <R> ExceptionFunction<T,R,E> andThen(ExceptionLongFunction<? extends R,? extends E> after)
default <T2> ExceptionToIntFunction<T2,E> compose(ExceptionFunction<? super T2,? extends T,? extends E> before)
Copyright © 2015 JBoss, a division of Red Hat, Inc.