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