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

Method requestType

java/dagger/internal/codegen/RequestKinds.java:52–66  ·  view source on GitHub ↗

Returns the type of a request of this kind for a key with a given type.

(RequestKind requestKind, TypeMirror type, DaggerTypes types)

Source from the content-addressed store, hash-verified

50final class RequestKinds {
51 /** Returns the type of a request of this kind for a key with a given type. */
52 static TypeMirror requestType(RequestKind requestKind, TypeMirror type, DaggerTypes types) {
53 switch (requestKind) {
54 case INSTANCE:
55 return type;
56
57 case PROVIDER_OF_LAZY:
58 return types.wrapType(requestType(LAZY, type, types), Provider.class);
59
60 case FUTURE:
61 return types.wrapType(type, ListenableFuture.class);
62
63 default:
64 return types.wrapType(type, frameworkClass(requestKind).get());
65 }
66 }
67
68 /** Returns the type of a request of this kind for a key with a given type. */
69 static TypeName requestTypeName(RequestKind requestKind, TypeName keyType) {

Callers 4

returnTypeMethod · 0.80

Calls 3

frameworkClassMethod · 0.95
wrapTypeMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected