@FunctionalInterface public interface CheckedSupplier<T>
Supplier that allows for checked exceptions.| Modifier and Type | Method | Description |
|---|---|---|
T |
get() |
Gets a result.
|
static <T> Supplier<T> |
sneaky(CheckedSupplier<T> supplier) |
|
static <T> Supplier<T> |
unchecked(CheckedSupplier<T> supplier) |
|
static <T> Supplier<T> |
unchecked(CheckedSupplier<T> supplier,
Consumer<Throwable> handler) |
static <T> Supplier<T> sneaky(CheckedSupplier<T> supplier)
static <T> Supplier<T> unchecked(CheckedSupplier<T> supplier)
static <T> Supplier<T> unchecked(CheckedSupplier<T> supplier, Consumer<Throwable> handler)
Copyright © 2018. All rights reserved.