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