static <T,E extends 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 Exception> 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 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 Exception> Consumer<T> |
LambdaUnchecker.uncheckedConsumer(LambdaUnchecker.ConsumerWithExceptions<T,E> _consumer) |
Wraps consumer lambda returning the consumer but hacking the compiler to avoid compilation check.
|