| Modifier and Type | Class and Description |
|---|---|
static interface |
Lazy.Supplier<T,E extends Throwable> |
| Constructor and Description |
|---|
Lazy(Lazy.Supplier<T,E> load) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Calculates the value and caches the result if no Exception
occurs.
|
T |
getValue()
Alias for get() for supporting JavaBean Style
|
static <T,E extends Throwable> |
of(Lazy.Supplier<T,E> s) |
void |
reset() |
public Lazy(Lazy.Supplier<T,E> load)
public static <T,E extends Throwable> Lazy<T,E> of(Lazy.Supplier<T,E> s)
public T get() throws E extends Throwable
public T getValue() throws E extends Throwable
public void reset()
Copyright © 2019. All rights reserved.