public interface ValueSupplier<V>
| Modifier and Type | Method and Description |
|---|---|
static <V> ValueSupplier<V> |
eagerValue(V value) |
V |
get()
Retrieves the value, if available.
|
boolean |
isAvailable()
Checks if the value is available.
|
static <V> ValueSupplier<V> |
lazyValue(Supplier<V> valueSupplier,
BooleanSupplier isAvailable) |
static <V> ValueSupplier<V> eagerValue(V value)
static <V> ValueSupplier<V> lazyValue(Supplier<V> valueSupplier, BooleanSupplier isAvailable)
boolean isAvailable()
V get()