T - the supplied typepublic final class Lazy<T> extends Object implements Supplier<T>
The delegate supplier is only called on the first execution of get().
The result is then cached and returned for all subsequent calls.
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
static <T> Lazy<T> |
of(T value) |
static <T> Lazy<T> |
suppliedBy(Supplier<T> supplier) |
Copyright © 2020. All rights reserved.