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)
| 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 |
no test coverage detected