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

Method unwrappedValueType

java/dagger/internal/codegen/MapType.java:100–107  ·  view source on GitHub ↗

V if #valueType() is a WrappingClass . @throws IllegalStateException if #isRawType() is true or #valueType() is not a WrappingClass @throws IllegalArgumentException if wrappingClass does not have exactly one type parameter

(Class<?> wrappingClass)

Source from the content-addressed store, hash-verified

98 * parameter
99 */
100 TypeMirror unwrappedValueType(Class<?> wrappingClass) {
101 checkArgument(
102 wrappingClass.getTypeParameters().length == 1,
103 "%s must have exactly one type parameter",
104 wrappingClass);
105 checkState(valuesAreTypeOf(wrappingClass), "expected values to be %s: %s", wrappingClass, this);
106 return MoreTypes.asDeclared(valueType()).getTypeArguments().get(0);
107 }
108
109 /**
110 * {@code true} if {@code type} is a {@link Map} type.

Callers 5

convertToDelegateKeyMethod · 0.95
rewrapMapKeyMethod · 0.95
creationExpressionMethod · 0.95
fieldValueTypeMethod · 0.80
contributedTypeMethod · 0.80

Calls 3

valuesAreTypeOfMethod · 0.95
valueTypeMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected