Searched refs:supertypeOf (Results 1 – 8 of 8) sorted by relevance
24 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()
190 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()
447 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 …]
118 assertEquals(Types.supertypeOf(String.class), new TypeResolver() in testWhere_parameterizedTypeMapping()
89 public static WildcardType supertypeOf(Type bound) { in supertypeOf() method in Types
76 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()170 @VisibleForTesting static WildcardType supertypeOf(Type lowerBound) { in supertypeOf() method in Types
232 return Types.supertypeOf(lowerBound); in resolveType()
304 Key.get(Types.listOf(Types.supertypeOf(Integer.class)));