-
Methods in org.bytemechanics.config.manager.internal.commons.functional with parameters of type LambdaUnchecker.SupplierWithExceptions
Modifier and Type |
Method |
Description |
static <T,
E extends java.lang.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 java.lang.Exception> java.util.function.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 java.lang.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 java.lang.Exception> java.util.function.Supplier<T> |
LambdaUnchecker.uncheckedSupplier(LambdaUnchecker.SupplierWithExceptions<T,E> _supplier) |
Wraps supplier lambda returning the same one but hacking the compiler to avoid compilation check.
|