Home
last modified time | relevance | path

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

12

/external/javapoet/src/main/java/com/squareup/javapoet/
DWildcardTypeName.java91 public static WildcardTypeName supertypeOf(TypeName lowerBound) { in supertypeOf() method in WildcardTypeName
96 public static WildcardTypeName supertypeOf(Type lowerBound) { in supertypeOf() method in WildcardTypeName
97 return supertypeOf(TypeName.get(lowerBound)); in supertypeOf()
113 return supertypeOf(TypeName.get(superBound, typeVariables)); in get()
/external/guice/core/test/com/google/inject/util/
DTypesTest.java23 import static com.google.inject.util.Types.supertypeOf;
116 assertEqualsBothWays(getWildcard("wildcardSuper"), supertypeOf(CharSequence.class)); in testWildcardTypes()
120 assertEquals("? super java.lang.CharSequence", supertypeOf(CharSequence.class).toString()); in testWildcardTypes()
124 assertEqualWhenReserialized(supertypeOf(CharSequence.class)); in testWildcardTypes()
130 supertypeOf(int.class); in testWildcardBoundsMustNotBePrimitives()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypesTest.java184 Type wildcard = Types.supertypeOf(Number.class); in testNewArrayType_lowerBoundedWildcard()
185 assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard)); in testNewArrayType_lowerBoundedWildcard()
222 WildcardType lowerBound = Types.supertypeOf(String[][].class); in testNewWildcardType()
245 SerializableTester.reserializeAndAssert(Types.supertypeOf(String.class)); in testNewWildcardType_serializable()
DTypeTokenTest.java444 TypeToken.of(Types.supertypeOf(String.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
447 TypeToken.of(Types.supertypeOf(String[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
450 TypeToken.of(Types.supertypeOf(CharSequence.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
521 assertThat(TypeToken.of(Types.supertypeOf(String.class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_lowerBounded()
522 assertThat(TypeToken.of(Types.supertypeOf(String[].class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_lowerBounded()
633 TypeToken<?> supertypeOfArray = TypeToken.of(Types.supertypeOf(Object[].class)); in testAssignableArrayClassToBoundedWildcard()
656 TypeToken<?> supertypeOfString = TypeToken.of(Types.supertypeOf(String.class)); in testAssignableNonParameterizedClassToWildcard()
682 TypeToken<?> supertypeOfArray = TypeToken.of(Types.supertypeOf(Object[].class)); in testAssignableWildcardToWildcard()
971 assertFalse(TypeToken.of(Types.supertypeOf(Object[].class)).isArray()); in testIsArray_wildcardType()
1022 assertNull(TypeToken.of(Types.supertypeOf(Object[].class)).getComponentType()); in testGetComponentType_wildcardType()
[all …]
DTypeResolverTest.java129 Types.supertypeOf(String.class), in testWhere_parameterizedTypeMapping()
/external/guava/android/guava-tests/test/com/google/common/reflect/
DTypesTest.java184 Type wildcard = Types.supertypeOf(Number.class); in testNewArrayType_lowerBoundedWildcard()
185 assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard)); in testNewArrayType_lowerBoundedWildcard()
222 WildcardType lowerBound = Types.supertypeOf(String[][].class); in testNewWildcardType()
245 SerializableTester.reserializeAndAssert(Types.supertypeOf(String.class)); in testNewWildcardType_serializable()
DTypeTokenTest.java444 TypeToken.of(Types.supertypeOf(String.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
447 TypeToken.of(Types.supertypeOf(String[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
450 TypeToken.of(Types.supertypeOf(CharSequence.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
521 assertThat(TypeToken.of(Types.supertypeOf(String.class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_lowerBounded()
522 assertThat(TypeToken.of(Types.supertypeOf(String[].class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_lowerBounded()
633 TypeToken<?> supertypeOfArray = TypeToken.of(Types.supertypeOf(Object[].class)); in testAssignableArrayClassToBoundedWildcard()
656 TypeToken<?> supertypeOfString = TypeToken.of(Types.supertypeOf(String.class)); in testAssignableNonParameterizedClassToWildcard()
682 TypeToken<?> supertypeOfArray = TypeToken.of(Types.supertypeOf(Object[].class)); in testAssignableWildcardToWildcard()
971 assertFalse(TypeToken.of(Types.supertypeOf(Object[].class)).isArray()); in testIsArray_wildcardType()
1022 assertNull(TypeToken.of(Types.supertypeOf(Object[].class)).getComponentType()); in testGetComponentType_wildcardType()
[all …]
DTypeResolverTest.java129 Types.supertypeOf(String.class), in testWhere_parameterizedTypeMapping()
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeNameTest.java158 assertEqualsHashCodeAndToString(WildcardTypeName.supertypeOf(String.class), in equalsAndHashCodeWildcardTypeName()
159 WildcardTypeName.supertypeOf(String.class)); in equalsAndHashCodeWildcardTypeName()
DAnnotatedTypeNameTest.java92 TypeName actual = WildcardTypeName.supertypeOf(type); in annotatedWildcardTypeNameWithSuper()
DAbstractTypesTest.java227 WildcardTypeName type = WildcardTypeName.supertypeOf(String.class); in wildcardSuperType()
DTypeSpecTest.java90 WildcardTypeName.supertypeOf(String.class)); in interestingTypes()
119 TypeName thungOfSuperBar = ParameterizedTypeName.get(thung, WildcardTypeName.supertypeOf(bar)); in anonymousInnerClass()
120 TypeName thungOfSuperFoo = ParameterizedTypeName.get(thung, WildcardTypeName.supertypeOf(foo)); in anonymousInnerClass()
/external/guice/core/src/com/google/inject/util/
DTypes.java86 public static WildcardType supertypeOf(Type bound) { in supertypeOf() method in Types
/external/guava/android/guava/src/com/google/common/reflect/
DTypes.java74 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()
162 static WildcardType supertypeOf(Type lowerBound) { in supertypeOf() method in Types
/external/guava/guava/src/com/google/common/reflect/
DTypes.java74 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()
161 static WildcardType supertypeOf(Type lowerBound) { in supertypeOf() method in Types
/external/guice/core/src/com/google/inject/
DTypeLiteral.java213 return Types.supertypeOf(lowerBound); in resolveType()
/external/guice/core/test/com/google/inject/spi/
DProviderMethodsTest.java327 Key.get(Types.listOf(Types.supertypeOf(Integer.class)));
/external/caliper/lib/
Dgson-2.2.2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/cldr/tools/java/libs/
Dgson.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dguava.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/testng/lib-supplied/
Dguice-2.0.jarMETA-INF/ META-INF/MANIFEST.MF LICENSE NOTICE org/ org/testng/ ...
/external/dagger2/java/dagger/internal/codegen/bootstrap/
Dbootstrap_compiler_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties META-INF ...
/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/conscrypt/benchmark-android/
Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties ...

12