-
Methods in org.bytemechanics.config.manager.internal.commons.functional with parameters of type LambdaUnchecker.ConsumerWithExceptions
Modifier and Type |
Method |
Description |
static <T,
E extends java.lang.Exception> void |
LambdaUnchecker.silencedAccept(LambdaUnchecker.ConsumerWithExceptions<T,E> _consumer,
T _input) |
Accept consumer input but silencing the exception
Example:
uncheckedAccept(name -> System.out.println(Class.forName(name)),"java.util.List");
|
static <T,
E extends java.lang.Exception> java.util.function.Consumer<T> |
LambdaUnchecker.silencedConsumer(LambdaUnchecker.ConsumerWithExceptions<T,E> _consumer) |
Wraps consumer lambda returning the same one but silencing the exception
Example:
.forEach(silencedConsumer(name -> System.out.println(Class.forName(name))));
or
.forEach(silencedConsumer(ClassNameUtil::println));
|
static <T,
E extends java.lang.Exception> void |
LambdaUnchecker.uncheckedAccept(LambdaUnchecker.ConsumerWithExceptions<T,E> _consumer,
T _input) |
Accept consumer input but hacking the compiler to avoid compilation check.
|
static <T,
E extends java.lang.Exception> java.util.function.Consumer<T> |
LambdaUnchecker.uncheckedConsumer(LambdaUnchecker.ConsumerWithExceptions<T,E> _consumer) |
Wraps consumer lambda returning the consumer but hacking the compiler to avoid compilation check.
|