Home
last modified time | relevance | path

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

/external/guice/core/test/com/google/inject/util/
DTypesTest.java24 import static com.google.inject.util.Types.supertypeOf;
118 assertEqualsBothWays(getWildcard("wildcardSuper"), supertypeOf(CharSequence.class)); in testWildcardTypes()
122 assertEquals("? super java.lang.CharSequence", supertypeOf(CharSequence.class).toString()); in testWildcardTypes()
126 assertEqualWhenReserialized(supertypeOf(CharSequence.class)); in testWildcardTypes()
132 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/guice/core/src/com/google/inject/util/
DTypes.java89 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.java232 return Types.supertypeOf(lowerBound); in resolveType()
/external/guice/core/test/com/google/inject/spi/
DProviderMethodsTest.java304 Key.get(Types.listOf(Types.supertypeOf(Integer.class)));