MCPcopy
hub / github.com/google/dagger / Lazy

Interface Lazy

dagger-runtime/main/java/dagger/Lazy.java:169–175  ·  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 d

Source from the content-addressed store, hash-verified

167 * Lazy} for lazy computation in a single client.
168 */
169public interface Lazy<T extends @Nullable Object> {
170 /**
171 * Return the underlying value, computing the value if necessary. All calls to
172 * the same {@code Lazy} instance will return the same result.
173 */
174 T get();
175}

Callers 8

GrpcServiceModelMethod · 0.65
grpcServiceAnnotationMethod · 0.65
serviceImplBaseMethod · 0.65
findMethodDescriptorsMethod · 0.65
bindsMethod · 0.65
intoSetMethod · 0.65
providesMethod · 0.65

Implementers 15

ComponentNamesdagger-compiler/main/java/dagger/inter
FactoryFieldsdagger-compiler/main/java/dagger/inter
TestComponentDataSupplierhilt-android-testing/main/java/dagger/
EntryPointshilt-core/main/java/dagger/hilt/EntryP
ImmediateProducerdagger-producers/main/java/dagger/prod
Produceddagger-producers/main/java/dagger/prod
Successfuldagger-producers/main/java/dagger/prod
Faileddagger-producers/main/java/dagger/prod
AbstractProducerdagger-producers/main/java/dagger/prod
NonCancellationPropagatingViewdagger-producers/main/java/dagger/prod
Producersdagger-producers/main/java/dagger/prod
DependencyMethodProducerdagger-producers/main/java/dagger/prod

Calls

no outgoing calls

Tested by

no test coverage detected