| Modifier and Type | Method and Description |
|---|---|
static <T> Consumer<T> |
Unchecker.uncheck(Unchecker.ThrowingConsumer<T> consumer)
As
Unchecker.uncheck(alexh.Unchecker.ThrowingConsumer, java.util.function.Function)
wrapping checked exceptions in RuntimeExceptions |
static <T> Consumer<T> |
Unchecker.uncheck(Unchecker.ThrowingConsumer<T> consumer,
Function<Throwable,? extends RuntimeException> exTransformer)
Converts Checked throwing consumer -> standard consumer, any checked exceptions are wrapped using the input
exception transformer
|
Copyright © 2016. All rights reserved.