-
Methods in org.bytemechanics.config.manager.internal.commons.functional with parameters of type LambdaUnchecker.FunctionWithExceptions
Modifier and Type |
Method |
Description |
static <T,
R,
E extends java.lang.Exception> R |
LambdaUnchecker.silencedApply(LambdaUnchecker.FunctionWithExceptions<T,R,E> _function,
T _input) |
Apply function returning the result but returning null when exception and silencing the exception and in this case returning null
Example:
silencedFunction(name -> Class.forName(name))
or
silencedFunction(Class::forName)
|
static <T,
R,
E extends java.lang.Exception> java.util.function.Function<T,R> |
LambdaUnchecker.silencedFunction(LambdaUnchecker.FunctionWithExceptions<T,R,E> _function) |
Wraps function lambda returning the same one but returning null when exception and silencing the exception
Example:
.map(silencedFunction(name -> Class.forName(name)))
or
.map(silencedFunction(Class::forName))
|
static <T,
R,
E extends java.lang.Exception> R |
LambdaUnchecker.uncheckedApply(LambdaUnchecker.FunctionWithExceptions<T,R,E> _function,
T _input) |
Apply function returning the result but hacking the compiler to avoid compilation check.
|
static <T,
R,
E extends java.lang.Exception> java.util.function.Function<T,R> |
LambdaUnchecker.uncheckedFunction(LambdaUnchecker.FunctionWithExceptions<T,R,E> _function) |
Wraps function lambda returning the same one but hacking the compiler to avoid compilation check.
|