Package ninja.leaping.configurate.util
Interface CheckedFunction<I,O,E extends 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 Exception>
A function with one input and one output which may throw a checked exception
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Oapply(I one)Perform the action.static <I,O>
CheckedFunction<I,O,RuntimeException>fromFunction(Function<I,@NonNull O> func)Convert a JDKFunctioninto its checked variant
-
-
-
Method Detail
-
fromFunction
static <I,O> CheckedFunction<I,O,RuntimeException> fromFunction(Function<I,@NonNull O> func)
Convert a JDKFunctioninto its checked variant- Type Parameters:
I- Parameter typeO- return type- Parameters:
func- The function- Returns:
- The function as a checked function
-
-