- All Known Subinterfaces:
CheckedUnaryOperator<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
Function
that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionApplies this function to the given argument.static <T,
R> Function<T, R> sneaky
(CheckedFunction<T, R> function) static <T,
R> Function<T, R> unchecked
(CheckedFunction<T, R> function) static <T,
R> Function<T, R> unchecked
(CheckedFunction<T, R> function, Consumer<Throwable> handler)
-
Method Details
-
apply
Applies this function to the given argument.- Parameters:
t
- the function argument- Returns:
- the function result
- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
-