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

Method from

java/dagger/internal/codegen/MapType.java:128–131  ·  view source on GitHub ↗

Returns a MapType for type. @throws IllegalArgumentException if type is not a Map type

(TypeMirror type)

Source from the content-addressed store, hash-verified

126 * @throws IllegalArgumentException if {@code type} is not a {@link Map} type
127 */
128 static MapType from(TypeMirror type) {
129 checkArgument(isMap(type), "%s is not a Map", type);
130 return new AutoValue_MapType(MoreTypes.equivalence().wrap(MoreTypes.asDeclared(type)));
131 }
132
133 /**
134 * Returns a {@link MapType} for {@code key}'s {@link Key#type() type}.

Callers 15

mapFactoryClassNameMethod · 0.95
fieldValueTypeMethod · 0.95
immutableMapTypeMethod · 0.95
maybeTypeParametersMethod · 0.95
isPlainMapMethod · 0.95
forMultibindsMethodMethod · 0.95
convertToDelegateKeyMethod · 0.95
rewrapMapKeyMethod · 0.95
wrapMapKeyMethod · 0.95
breaksCycleMethod · 0.95

Calls 2

isMapMethod · 0.95
typeMethod · 0.45

Tested by 9

hasErrorMethod · 0.36
javacoptsMethod · 0.36
basicInjectedTypeMethod · 0.36
memberInjectedTypeMethod · 0.36
floatFutureMethod · 0.36
intFutureMethod · 0.36
stringFutureMethod · 0.36
doubleFutureMethod · 0.36
setOfDoubleFuturesMethod · 0.36