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

Method wrapType

java/dagger/internal/codegen/DaggerTypes.java:110–112  ·  view source on GitHub ↗

Returns type wrapped in wrappingClass. For example, if type is List and wrappingClass is Set.class, this will return Set >.

(TypeMirror type, Class<?> wrappingClass)

Source from the content-addressed store, hash-verified

108 * Set.class}, this will return {@code Set<List<Number>>}.
109 */
110 TypeMirror wrapType(TypeMirror type, Class<?> wrappingClass) {
111 return types.getDeclaredType(elements.getTypeElement(wrappingClass.getCanonicalName()), type);
112 }
113
114 /**
115 * Returns {@code type}'s single type argument wrapped in {@code wrappingClass}.

Callers 6

toMethod · 0.80
visitClassDefMethod · 0.80
visitMethodDefMethod · 0.80
requestTypeMethod · 0.80

Calls 2

getDeclaredTypeMethod · 0.80
getTypeElementMethod · 0.45

Tested by

no test coverage detected