Interface CheckedFunction<I,O,E extends java.lang.Exception>
-
- Type Parameters:
I
- the input parameter typeO
- the output parameter typeE
- the type thrown
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CheckedFunction<I,O,E extends java.lang.Exception>
A function with one input and one output which may throw a checked exception.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description O
apply(I one)
Perform the action.static <I,O>
CheckedFunction<I,O,java.lang.RuntimeException>from(java.util.function.Function<I,@NonNull O> func)
Convert a JDKFunction
into its checked variant.
-
-
-
Method Detail
-
from
static <I,O> CheckedFunction<I,O,java.lang.RuntimeException> from(java.util.function.Function<I,@NonNull O> func)
Convert a JDKFunction
into its checked variant.- Type Parameters:
I
- parameter typeO
- return type- Parameters:
func
- the function- Returns:
- the function as a checked function
- Since:
- 4.0.0
-
-