Home
last modified time | relevance | path

Searched refs:newParameterizedType (Results 1 – 25 of 27) sorted by relevance

12

/external/guice/core/src/com/google/inject/util/
DTypes.java48 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/
DTypeLiteralTypeResolutionTest.java23 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/
DTypesTest.java51 Types.newParameterizedType(Entry.class, String.class, Integer.class); in testNewParameterizedType_ownerTypeImplied()
60 Types.newParameterizedType(HashMap.class, String.class, int[][].class); in testNewParameterizedType()
79 Type ourType = Types.newParameterizedType(LocalClass.class, String.class); in testNewParameterizedType_nonStaticLocalClass()
90 Type ourType = Types.newParameterizedType(LocalClass.class, String.class); in doTestNewParameterizedType_staticLocalClass()
116 Types.newParameterizedType(Entry.class, String.class, Integer.class)); in testNewParameterizedType_serializable()
129 Types.newParameterizedType(Entry.class, String.class, Integer.class), in testNewParameterizedType_ownerMissing()
152 (GenericArrayType) Types.newArrayType(Types.newParameterizedType(List.class, String.class)); in testNewArrayType()
362 ParameterizedType parameterizedType = Types.newParameterizedType(Map.class, typesIn); in testNewParameterizedTypeImmutability()
376 Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class); in testNewParameterizedTypeWithWrongNumberOfTypeArguments()
DTypeTokenResolutionTest.java456 assertEquals(Types.newParameterizedType(Enum.class, typeVariable), typeVariable.getBounds()[0]);
465 assertEquals(Types.newParameterizedType(List.class, v), k.getBounds()[0]);
466 assertEquals(Types.newParameterizedType(List.class, k), v.getBounds()[0]);
DTypeTokenTest.java99 assertEquals(Types.newParameterizedType(Local.class, String.class), type.getType()); in testNonStaticLocalClass()
110 assertEquals(Types.newParameterizedType(Local.class, String.class), type.getType()); in doTestStaticLocalClass()
1046 Types.newParameterizedType(Iterable.class, Iterable.class.getTypeParameters()[0]), in testToGenericType()
1078 Types.newParameterizedType( in testGetSupertype_withTypeVariable()
1080 Types.newParameterizedType(List.class, ListIterable.class.getTypeParameters()[0])); in testGetSupertype_withTypeVariable()
1096 Types.newParameterizedType( in testGetSupertype_withoutTypeVariable()
1097 Iterable.class, Types.newParameterizedType(List.class, String.class)); in testGetSupertype_withoutTypeVariable()
1109 Types.newParameterizedType( in testGetSupertype_chained()
1110 Iterable.class, Types.newParameterizedType(List.class, String.class)); in testGetSupertype_chained()
1144 Types.newParameterizedType(Iterable.class, List.class.getTypeParameters()[0]), in testGetSupertype_fromRawClass()
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DTypesTest.java51 Types.newParameterizedType(Entry.class, String.class, Integer.class); in testNewParameterizedType_ownerTypeImplied()
60 Types.newParameterizedType(HashMap.class, String.class, int[][].class); in testNewParameterizedType()
79 Type ourType = Types.newParameterizedType(LocalClass.class, String.class); in testNewParameterizedType_nonStaticLocalClass()
90 Type ourType = Types.newParameterizedType(LocalClass.class, String.class); in doTestNewParameterizedType_staticLocalClass()
116 Types.newParameterizedType(Entry.class, String.class, Integer.class)); in testNewParameterizedType_serializable()
129 Types.newParameterizedType(Entry.class, String.class, Integer.class), in testNewParameterizedType_ownerMissing()
152 (GenericArrayType) Types.newArrayType(Types.newParameterizedType(List.class, String.class)); in testNewArrayType()
362 ParameterizedType parameterizedType = Types.newParameterizedType(Map.class, typesIn); in testNewParameterizedTypeImmutability()
376 Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class); in testNewParameterizedTypeWithWrongNumberOfTypeArguments()
DTypeTokenResolutionTest.java456 assertEquals(Types.newParameterizedType(Enum.class, typeVariable), typeVariable.getBounds()[0]);
465 assertEquals(Types.newParameterizedType(List.class, v), k.getBounds()[0]);
466 assertEquals(Types.newParameterizedType(List.class, k), v.getBounds()[0]);
DTypeTokenTest.java99 assertEquals(Types.newParameterizedType(Local.class, String.class), type.getType()); in testNonStaticLocalClass()
110 assertEquals(Types.newParameterizedType(Local.class, String.class), type.getType()); in doTestStaticLocalClass()
1046 Types.newParameterizedType(Iterable.class, Iterable.class.getTypeParameters()[0]), in testToGenericType()
1078 Types.newParameterizedType( in testGetSupertype_withTypeVariable()
1080 Types.newParameterizedType(List.class, ListIterable.class.getTypeParameters()[0])); in testGetSupertype_withTypeVariable()
1096 Types.newParameterizedType( in testGetSupertype_withoutTypeVariable()
1097 Iterable.class, Types.newParameterizedType(List.class, String.class)); in testGetSupertype_withoutTypeVariable()
1109 Types.newParameterizedType( in testGetSupertype_chained()
1110 Iterable.class, Types.newParameterizedType(List.class, String.class)); in testGetSupertype_chained()
1144 Types.newParameterizedType(Iterable.class, List.class.getTypeParameters()[0]), in testGetSupertype_fromRawClass()
[all …]
/external/guice/core/test/com/google/inject/util/
DTypesTest.java77 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/
DRealOptionalBinder.java22 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 …]
DRealMultibinder.java79 Types.newParameterizedType(javax.inject.Provider.class, elementType.getType()); in collectionOfJavaxProvidersOf()
DRealMapBinder.java8 import static com.google.inject.util.Types.newParameterizedType;
139 newParameterizedType(javax.inject.Provider.class, valueType.getType()))); in mapOfJavaxProviderOf()
/external/guava/android/guava/src/com/google/common/reflect/
DTypes.java91 return newParameterizedType(rawType, arguments); in newParameterizedTypeWithOwner()
100 static ParameterizedType newParameterizedType(Class<?> rawType, Type... arguments) { in newParameterizedType() method in Types
DInvokable.java270 return Types.newParameterizedType(declaringClass, typeParams); in getGenericReturnType()
/external/guava/guava/src/com/google/common/reflect/
DTypes.java91 return newParameterizedType(rawType, arguments); in newParameterizedTypeWithOwner()
100 static ParameterizedType newParameterizedType(Class<?> rawType, Type... arguments) { in newParameterizedType() method in Types
DInvokable.java288 return Types.newParameterizedType(declaringClass, typeParams); in getGenericReturnType()
/external/guice/core/test/com/google/inject/internal/
DMapBinderTest.java114 return Types.newParameterizedType(Collection.class, type); in collectionOf()
/external/testng/lib-supplied/
Dguice-2.0.jarMETA-INF/ META-INF/MANIFEST.MF LICENSE NOTICE org/ org/testng/ ...
/external/guice/lib/
Dguava-19.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/lib/
Dguava-21.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/cldr/tools/java/libs/
Dguava.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/guice/extensions/struts2/lib/
Dcore-3.1.1.jarMETA-INF/ org/ org/eclipse/ org/eclipse/jdt/ org/eclipse ...
/external/dagger2/java/dagger/internal/codegen/bootstrap/
Dbootstrap_compiler_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties META-INF ...
/external/conscrypt/benchmark-android/
Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties ...
/external/icu/tools/srcgen/currysrc/libs/
Dorg.eclipse.jdt.core_3.14.0.v20180528-0519.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSE_.SF META-INF/ECLIPSE_ ...

12