public class CachedSupplier<T>
extends java.lang.Object
implements java.util.function.Supplier<T>
Modifier and Type | Class and Description |
---|---|
static class |
CachedSupplier.AccessInterruptedException |
static interface |
CachedSupplier.Accessor<T> |
static class |
CachedSupplier.AccessTimeoutException |
static class |
CachedSupplier.Builder<T> |
Modifier and Type | Method and Description |
---|---|
static <T> CachedSupplier.Builder<T> |
builder(java.util.function.Supplier<T> supplier) |
T |
get() |
static <T> CachedSupplier<T> |
of(java.util.function.Supplier<T> supplier) |
public static <T> CachedSupplier<T> of(java.util.function.Supplier<T> supplier)
public static <T> CachedSupplier.Builder<T> builder(java.util.function.Supplier<T> supplier)