Home
last modified time | relevance | path

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

/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.java190 Type wildcard = Types.supertypeOf(Number.class); in testNewArrayType_lowerBoundedWildcard()
191 assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard)); in testNewArrayType_lowerBoundedWildcard()
236 Types.supertypeOf(String[][].class); in testNewWildcardType()
260 Types.supertypeOf(String.class)); in testNewWildcardType_serializable()
DTypeTokenTest.java447 TypeToken.of(Types.supertypeOf(String.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
449 TypeToken.of(Types.supertypeOf(String[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
451 TypeToken.of(Types.supertypeOf(CharSequence.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_lowerBounded()
519 assertThat(TypeToken.of(Types.supertypeOf(String.class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_lowerBounded()
520 assertThat(TypeToken.of(Types.supertypeOf(String[].class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_lowerBounded()
610 TypeToken<?> lowerBounded = TypeToken.of(Types.supertypeOf(Object[].class)); in testAssignableArrayClassToBoundedWildcard()
630 TypeToken<?> lowerBounded = TypeToken.of(Types.supertypeOf(Object[].class)); in testAssignableWildcardToWildcard()
915 assertFalse(TypeToken.of(Types.supertypeOf(Object[].class)).isArray()); in testIsArray_wildcardType()
963 assertNull(TypeToken.of(Types.supertypeOf(Object[].class)).getComponentType()); in testGetComponentType_wildcardType()
1122 TypeToken.of(Types.supertypeOf(new TypeToken<Iterable<String>>() {}.getType())); in testGetSubtype_fromWildcard()
[all …]
DTypeResolverTest.java118 assertEquals(Types.supertypeOf(String.class), new TypeResolver() 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.java89 WildcardTypeName.supertypeOf(String.class)); in interestingTypes()
118 TypeName thungOfSuperBar = ParameterizedTypeName.get(thung, WildcardTypeName.supertypeOf(bar)); in anonymousInnerClass()
119 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/guava/src/com/google/common/reflect/
DTypes.java76 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()
170 @VisibleForTesting 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)));