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

Method wrapMapValue

java/dagger/internal/codegen/KeyFactory.java:353–358  ·  view source on GitHub ↗

Converts a Key of type Map to Map >.

(Key key, Class<?> newWrappingClass)

Source from the content-addressed store, hash-verified

351 * Converts a {@link Key} of type {@code Map<K, V>} to {@code Map<K, Provider<V>>}.
352 */
353 private Key wrapMapValue(Key key, Class<?> newWrappingClass) {
354 checkArgument(
355 FrameworkTypes.isFrameworkType(
356 elements.getTypeElement(newWrappingClass.getName()).asType()));
357 return wrapMapKey(key, newWrappingClass).get();
358 }
359
360 /**
361 * If {@code key}'s type is {@code Map<K, CurrentWrappingClass<Bar>>}, returns a key with type

Callers 1

forDelegateBindingMethod · 0.95

Calls 6

isFrameworkTypeMethod · 0.95
wrapMapKeyMethod · 0.95
asTypeMethod · 0.80
getNameMethod · 0.80
getMethod · 0.65
getTypeElementMethod · 0.45

Tested by

no test coverage detected