Home
last modified time | relevance | path

Searched refs:wildcardType (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava/src/com/google/common/reflect/
DTypeResolver.java405 WildcardType wildcardType = (WildcardType) type; in capture() local
406 Type[] lowerBounds = wildcardType.getLowerBounds(); in capture()
408 Type[] upperBounds = wildcardType.getUpperBounds(); in capture()
412 WildcardCapturer.class, name, wildcardType.getUpperBounds()); in capture()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenTest.java156 TypeToken<?> wildcardType = TypeToken.of(withWildcardType.getActualTypeArguments()[0]); in testResolveType_fromWildcard() local
158 wildcardType.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromWildcard()
601 Type wildcardType = Types.subtypeOf(Object[].class); in testAssignableWildcardBoundedByArrayToArrayClass() local
602 assertTrue(TypeToken.of(Object[].class).isAssignableFrom(wildcardType)); in testAssignableWildcardBoundedByArrayToArrayClass()
603 assertTrue(TypeToken.of(Object.class).isAssignableFrom(wildcardType)); in testAssignableWildcardBoundedByArrayToArrayClass()
604 assertTrue(TypeToken.of(wildcardType).isAssignableFrom(wildcardType)); in testAssignableWildcardBoundedByArrayToArrayClass()
605 assertFalse(TypeToken.of(int[].class).isAssignableFrom(wildcardType)); in testAssignableWildcardBoundedByArrayToArrayClass()
621 Type wildcardType = Types.subtypeOf(int[].class); in testAssignableWildcardBoundedByIntArrayToArrayClass() local
622 assertTrue(TypeToken.of(int[].class).isAssignableFrom(wildcardType)); in testAssignableWildcardBoundedByIntArrayToArrayClass()
623 assertTrue(TypeToken.of(Object.class).isAssignableFrom(wildcardType)); in testAssignableWildcardBoundedByIntArrayToArrayClass()
[all …]
DTypeTokenResolutionTest.java473 WildcardType wildcardType = (WildcardType)
476 assertEquals(String.class, wildcardType.getLowerBounds()[0]);
480 WildcardType wildcardType = (WildcardType)
483 assertEquals(String.class, wildcardType.getUpperBounds()[0]);