static <T,R,E extends 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 Exception> 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 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 Exception> 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.
|