A handle to a lazily-computed value. Each Lazy computes its value on the first call to #get() and remembers that same value for all subsequent calls to get(). All implementations are expected to be thread-safe and compute their value at most once. Example The di
| 143 | * clients, and {@code Lazy} for lazy computation in a single client. |
| 144 | */ |
| 145 | public interface Lazy<T> { |
| 146 | /** |
| 147 | * Return the underlying value, computing the value if necessary. All calls to |
| 148 | * the same {@code Lazy} instance will return the same result. |
| 149 | */ |
| 150 | T get(); |
| 151 | } |
no outgoing calls
no test coverage detected