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

Method from

java/dagger/internal/codegen/SetType.java:107–110  ·  view source on GitHub ↗

Returns a SetType for type. @throws IllegalArgumentException if type is not a Set type

(TypeMirror type)

Source from the content-addressed store, hash-verified

105 * @throws IllegalArgumentException if {@code type} is not a {@link Set} type
106 */
107 static SetType from(TypeMirror type) {
108 checkArgument(isSet(type), "%s must be a Set", type);
109 return new AutoValue_SetType(MoreTypes.equivalence().wrap(MoreTypes.asDeclared(type)));
110 }
111
112 /**
113 * Returns a {@link SetType} for {@code key}'s {@link Key#type() type}.

Callers 15

creationExpressionMethod · 0.95
setFactoryClassNameMethod · 0.95
fieldValueTypeMethod · 0.95
checkSetValuesTypeMethod · 0.95
fromProducesMethodMethod · 0.95
isPlainSetMethod · 0.95
typeToNameMethod · 0.95
forBindingMethodMethod · 0.95
unwrapSetKeyMethod · 0.95
emptySetFactoryMethod · 0.95

Calls 2

isSetMethod · 0.95
typeMethod · 0.45

Tested by

no test coverage detected