Searched refs:supertypeOf (Results 1 – 13 of 13) sorted by relevance
91 public static WildcardTypeName supertypeOf(TypeName lowerBound) { in supertypeOf() method in WildcardTypeName96 public static WildcardTypeName supertypeOf(Type lowerBound) { in supertypeOf() method in WildcardTypeName97 return supertypeOf(TypeName.get(lowerBound)); in supertypeOf()113 return supertypeOf(TypeName.get(superBound, typeVariables)); in get()
23 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()
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()
158 assertEqualsHashCodeAndToString(WildcardTypeName.supertypeOf(String.class), in equalsAndHashCodeWildcardTypeName()159 WildcardTypeName.supertypeOf(String.class)); in equalsAndHashCodeWildcardTypeName()
92 TypeName actual = WildcardTypeName.supertypeOf(type); in annotatedWildcardTypeNameWithSuper()
227 WildcardTypeName type = WildcardTypeName.supertypeOf(String.class); in wildcardSuperType()
89 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()
86 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
213 return Types.supertypeOf(lowerBound); in resolveType()
327 Key.get(Types.listOf(Types.supertypeOf(Integer.class)));