MCPcopy Create free account
hub / github.com/antlr/codebuff / where

Method where

output/java_guava/1.4.17/TypeResolver.java:106–110  ·  view source on GitHub ↗

Returns a new TypeResolver with type variables in formal mapping to types in actual. For example, if formal is a TypeVariable T, and actual is String.class, then new TypeResolver().where(formal, actual) will {@linkplain #resolveType

(Type formal, Type actual)

Source from the content-addressed store, hash-verified

104
105
106 public TypeResolver where(Type formal, Type actual) {
107 Map<TypeVariableKey, Type> mappings = Maps.newHashMap();
108 populateTypeMappings(mappings, checkNotNull(formal), checkNotNull(actual));
109 return where(mappings);
110 }
111
112 /** Returns a new {@code TypeResolver} with {@code variable} mapping to {@code type}. */
113

Callers 1

accordingToMethod · 0.45

Calls 3

newHashMapMethod · 0.95
populateTypeMappingsMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected