static <T,E extends Exception> T |
LambdaUnchecker.silencedGet(LambdaUnchecker.SupplierWithExceptions<T,E> _supplier) |
Get supplier returning the supplier result or null if exception
Example:
silencedGet(() -> new StringJoiner(new String(new byte[]{77, 97, 114, 107}, "UTF-8")))
|
static <T,E extends Exception> Supplier<T> |
LambdaUnchecker.silencedSupplier(LambdaUnchecker.SupplierWithExceptions<T,E> _supplier) |
Wraps supplier lambda returning the same one but returning null when exception and silencing the exception
Example:
silencedSupplier(() -> new StringJoiner(new String(new byte[]{77, 97, 114, 107}, "UTF-8"))),
|
static <T,E extends Exception> T |
LambdaUnchecker.uncheckedGet(LambdaUnchecker.SupplierWithExceptions<T,E> _supplier) |
Get supplier returning the supplier result but hacking the compiler to avoid compilation check.
|
static <T,E extends Exception> Supplier<T> |
LambdaUnchecker.uncheckedSupplier(LambdaUnchecker.SupplierWithExceptions<T,E> _supplier) |
Wraps supplier lambda returning the same one but hacking the compiler to avoid compilation check.
|