MCPcopy Index your code
hub / github.com/google/dagger / Lazy

Interface Lazy

java/dagger/Lazy.java:145–151  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

143 * clients, and {@code Lazy} for lazy computation in a single client.
144 */
145public 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}

Callers 8

visitGraphMethod · 0.65
isDoneMethod · 0.65
setUpMethod · 0.65
usesGeneratedModulesMethod · 0.65
getMethod · 0.65
getMethod · 0.65

Implementers 15

SingleCheckTestjavatests/dagger/internal/SingleCheckT
DoubleCheckTestjavatests/dagger/internal/DoubleCheckT
LatchedProviderjavatests/dagger/internal/DoubleCheckT
ProducersTestjavatests/dagger/producers/internal/Pr
AbstractProducerTestjavatests/dagger/producers/internal/Ab
MembersInjectTestjavatests/dagger/functional/membersinj
ProducerFactoryTestjavatests/dagger/functional/producers/
NullabilityTestjavatests/dagger/functional/nullables/
MapProviderFactoryjava/dagger/internal/MapProviderFactor
DoubleCheckjava/dagger/internal/DoubleCheck.java
SingleCheckjava/dagger/internal/SingleCheck.java
ReferenceReleasingProviderjava/dagger/internal/ReferenceReleasin

Calls

no outgoing calls

Tested by

no test coverage detected