/external/guice/core/src/com/google/inject/util/ |
D | Types.java | 48 public static ParameterizedType newParameterizedType(Type rawType, Type... typeArguments) { in newParameterizedType() method in Types 96 return newParameterizedType(List.class, elementType); in listOf() 105 return newParameterizedType(Collection.class, elementType); in collectionOf() 114 return newParameterizedType(Set.class, elementType); in setOf() 124 return newParameterizedType(Map.class, keyType, valueType); in mapOf() 135 return newParameterizedType(Provider.class, providedType); in providerOf() 145 return Types.newParameterizedType(javax.inject.Provider.class, type); in javaxProviderOf()
|
/external/guice/core/test/com/google/inject/ |
D | TypeLiteralTypeResolutionTest.java | 23 import static com.google.inject.util.Types.newParameterizedType; 51 Type arrayListOfString = newParameterizedType(ArrayList.class, String.class); 109 newParameterizedType(Collection.class, String.class), in testGenericSupertype() 112 newParameterizedType(Iterable.class, String.class), in testGenericSupertype() 115 newParameterizedType(AbstractList.class, String.class), in testGenericSupertype() 312 Types.newParameterizedType(AbstractCollection.class, String.class), in testGetSupertype() 316 TypeLiteral.get(newParameterizedType(ArrayList.class, ArrayList.class.getTypeParameters())); in testGetSupertype() 318 newParameterizedType(AbstractCollection.class, ArrayList.class.getTypeParameters()), in testGetSupertype() 325 TypeLiteral type = TypeLiteral.get(newParameterizedType(AbstractList.class, anotherE)); in testGetSupertypeForArraysAsList() 327 newParameterizedType(AbstractCollection.class, anotherE), in testGetSupertypeForArraysAsList()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypesTest.java | 51 ParameterizedType ourType = Types.newParameterizedType( in testNewParameterizedType_ownerTypeImplied() 60 ParameterizedType ourType = Types.newParameterizedType( in testNewParameterizedType() 81 Type ourType = Types.newParameterizedType(LocalClass.class, String.class); in testNewParameterizedType_nonStaticLocalClass() 92 Type ourType = Types.newParameterizedType(LocalClass.class, String.class); in doTestNewParameterizedType_staticLocalClass() 115 SerializableTester.reserializeAndAssert(Types.newParameterizedType( in testNewParameterizedType_serializable() 129 Types.newParameterizedType(Map.Entry.class, String.class, Integer.class), in testNewParameterizedType_ownerMissing() 153 Types.newParameterizedType(List.class, String.class)); in testNewArrayType() 380 = Types.newParameterizedType(Map.class, typesIn); in testNewParameterizedTypeImmutability() 394 Types.newParameterizedType( in testNewParameterizedTypeWithWrongNumberOfTypeArguments()
|
D | TypeTokenTest.java | 95 assertEquals(Types.newParameterizedType(Local.class, String.class), in testNonStaticLocalClass() 107 assertEquals(Types.newParameterizedType(Local.class, String.class), in doTestStaticLocalClass() 990 assertEquals(Types.newParameterizedType(Iterable.class, Iterable.class.getTypeParameters()[0]), in testToGenericType() 1000 ParameterizedType expectedType = Types.newParameterizedType(Iterable.class, in testGetSupertype_withTypeVariable() 1001 Types.newParameterizedType(List.class, ListIterable.class.getTypeParameters()[0])); in testGetSupertype_withTypeVariable() 1007 ParameterizedType expectedType = Types.newParameterizedType(Iterable.class, in testGetSupertype_withoutTypeVariable() 1008 Types.newParameterizedType(List.class, String.class)); in testGetSupertype_withoutTypeVariable() 1017 ParameterizedType expectedType = Types.newParameterizedType(Iterable.class, in testGetSupertype_chained() 1018 Types.newParameterizedType(List.class, String.class)); in testGetSupertype_chained() 1049 assertEquals(Types.newParameterizedType(Iterable.class, List.class.getTypeParameters()[0]), in testGetSupertype_fromRawClass() [all …]
|
D | TypeTokenResolutionTest.java | 458 assertEquals(Types.newParameterizedType(Enum.class, typeVariable), 468 assertEquals(Types.newParameterizedType(List.class, v), k.getBounds()[0]); 469 assertEquals(Types.newParameterizedType(List.class, k), v.getBounds()[0]);
|
/external/guice/core/test/com/google/inject/util/ |
D | TypesTest.java | 77 ParameterizedType parameterizedType = Types.newParameterizedType(Map.class, arguments); in testDefensiveCopies() 103 Types.newParameterizedType(Map.class, String.class, int.class); in testTypeParametersMustNotBePrimitives() 153 Types.newParameterizedType(Map.class, String.class, Integer.class); in testEqualsAndHashcode() 158 Types.arrayOf(Types.arrayOf(Types.newParameterizedType(Set.class, String.class))); in testEqualsAndHashcode() 180 Types.newParameterizedType(Owning.class, String.class); in testCanonicalizeRequiresOwnerTypes()
|
/external/guice/core/src/com/google/inject/internal/ |
D | RealOptionalBinder.java | 22 import static com.google.inject.util.Types.newParameterizedType; 121 TypeLiteral.get(Types.newParameterizedType(Optional.class, type.getType())); in optionalOf() 126 return TypeLiteral.get(Types.newParameterizedType(JAVA_OPTIONAL_CLASS, type.getType())); in javaOptionalOf() 134 Types.newParameterizedType( in optionalOfJavaxProvider() 135 Optional.class, newParameterizedType(javax.inject.Provider.class, type.getType()))); in optionalOfJavaxProvider() 141 Types.newParameterizedType( in javaOptionalOfJavaxProvider() 143 newParameterizedType(javax.inject.Provider.class, type.getType()))); in javaOptionalOfJavaxProvider() 150 Types.newParameterizedType( in optionalOfProvider() 151 Optional.class, newParameterizedType(Provider.class, type.getType()))); in optionalOfProvider() 157 Types.newParameterizedType( in javaOptionalOfProvider() [all …]
|
D | RealMultibinder.java | 79 Types.newParameterizedType(javax.inject.Provider.class, elementType.getType()); in collectionOfJavaxProvidersOf()
|
D | RealMapBinder.java | 8 import static com.google.inject.util.Types.newParameterizedType; 139 newParameterizedType(javax.inject.Provider.class, valueType.getType()))); in mapOfJavaxProviderOf()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Types.java | 93 return newParameterizedType(rawType, arguments); in newParameterizedTypeWithOwner() 105 static ParameterizedType newParameterizedType(Class<?> rawType, Type... arguments) { in newParameterizedType() method in Types
|
D | Invokable.java | 253 return Types.newParameterizedType(declaringClass, typeParams); in getGenericReturnType()
|
D | TypeToken.java | 965 of(Types.newParameterizedType(cls, typeParams));
|
/external/guice/core/test/com/google/inject/internal/ |
D | MapBinderTest.java | 114 return Types.newParameterizedType(Collection.class, type); in collectionOf()
|