/external/guice/core/test/com/google/inject/util/ |
D | TypesTest.java | 22 import static com.google.inject.util.Types.subtypeOf; 117 assertEqualsBothWays(getWildcard("wildcardExtends"), subtypeOf(CharSequence.class)); in testWildcardTypes() 118 assertEqualsBothWays(getWildcard("wildcardObject"), subtypeOf(Object.class)); in testWildcardTypes() 121 assertEquals("? extends java.lang.CharSequence", subtypeOf(CharSequence.class).toString()); in testWildcardTypes() 122 assertEquals("?", subtypeOf(Object.class).toString()); in testWildcardTypes() 125 assertEqualWhenReserialized(subtypeOf(CharSequence.class)); in testWildcardTypes() 138 subtypeOf(int.class); in testWildcardBoundsMustNotBePrimitives()
|
/external/javassist/src/main/javassist/ |
D | CtArray.java | 75 public boolean subtypeOf(CtClass clazz) throws NotFoundException in subtypeOf() method in CtArray 77 if (super.subtypeOf(clazz)) in subtypeOf() 86 if (intfs[i].subtypeOf(clazz)) in subtypeOf() 90 && getComponentType().subtypeOf(clazz.getComponentType()); in subtypeOf()
|
D | SerialVersionUID.java | 72 return clazz.subtypeOf(pool.get("java.io.Serializable")); in isSerializable()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | WildcardTypeName.java | 79 public static WildcardTypeName subtypeOf(TypeName upperBound) { in subtypeOf() method in WildcardTypeName 83 public static WildcardTypeName subtypeOf(Type upperBound) { in subtypeOf() method in WildcardTypeName 84 return subtypeOf(TypeName.get(upperBound)); in subtypeOf() 111 return subtypeOf(Object.class); in get() 116 return subtypeOf(TypeName.get(extendsBound, typeVariables)); in get()
|
/external/javassist/src/test/javassist/bytecode/ |
D | StackMapTest.java | 742 assertTrue(one.subtypeOf(obj)); in testCommonSuperclass() 743 assertTrue(two.subtypeOf(obj)); in testCommonSuperclass() 744 assertFalse(one.subtypeOf(objarray)); in testCommonSuperclass() 745 assertTrue(two.subtypeOf(objarray)); in testCommonSuperclass() 750 assertTrue(one.subtypeOf(objarray)); in testCommonSuperclass() 751 assertTrue(two.subtypeOf(objarray)); in testCommonSuperclass() 756 assertTrue(one.subtypeOf(obj)); in testCommonSuperclass() 757 assertTrue(two.subtypeOf(obj)); in testCommonSuperclass() 758 assertFalse(one.subtypeOf(objarray)); in testCommonSuperclass() 759 assertFalse(two.subtypeOf(objarray)); in testCommonSuperclass() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypesTest.java | 179 Type wildcard = Types.subtypeOf(Number.class); in testNewArrayType_upperBoundedWildcard() 180 assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard)); in testNewArrayType_upperBoundedWildcard() 220 WildcardType objectBound = Types.subtypeOf(Object.class); in testNewWildcardType() 221 WildcardType upperBound = Types.subtypeOf(int[][].class); in testNewWildcardType() 238 Types.subtypeOf(int.class); in testNewWildcardType_primitiveTypeBound() 246 SerializableTester.reserializeAndAssert(Types.subtypeOf(String.class)); in testNewWildcardType_serializable() 247 SerializableTester.reserializeAndAssert(Types.subtypeOf(Object.class)); in testNewWildcardType_serializable()
|
D | TypeTokenTest.java | 456 TypeToken.of(Types.subtypeOf(Object.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsClass() 459 TypeToken.of(Types.subtypeOf(Object[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsClass() 463 assertNull(TypeToken.of(Types.subtypeOf(CharSequence.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsInterface() 466 TypeToken.of(Types.subtypeOf(CharSequence[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsInterface() 526 assertThat(TypeToken.of(Types.subtypeOf(Object.class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_boundIsClass() 527 assertThat(TypeToken.of(Types.subtypeOf(Object[].class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_boundIsClass() 532 makeUnmodifiable(TypeToken.of(Types.subtypeOf(interfaceType.getType())).getGenericInterfaces()) in testGetGenericInterfaces_wildcard_boundIsInterface() 616 Type wildcardType = Types.subtypeOf(Object[].class); in testAssignableWildcardBoundedByArrayToArrayClass() 632 TypeToken<?> subtypeOfArray = TypeToken.of(Types.subtypeOf(Object[].class)); in testAssignableArrayClassToBoundedWildcard() 661 assertTrue(supertypeOfString.isSupertypeOf(Types.subtypeOf(String.class))); in testAssignableNonParameterizedClassToWildcard() [all …]
|
D | TypeVisitorTest.java | 58 WildcardType type = Types.subtypeOf(String.class); in testVisitWildcardType()
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | TypesTest.java | 179 Type wildcard = Types.subtypeOf(Number.class); in testNewArrayType_upperBoundedWildcard() 180 assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard)); in testNewArrayType_upperBoundedWildcard() 220 WildcardType objectBound = Types.subtypeOf(Object.class); in testNewWildcardType() 221 WildcardType upperBound = Types.subtypeOf(int[][].class); in testNewWildcardType() 238 Types.subtypeOf(int.class); in testNewWildcardType_primitiveTypeBound() 246 SerializableTester.reserializeAndAssert(Types.subtypeOf(String.class)); in testNewWildcardType_serializable() 247 SerializableTester.reserializeAndAssert(Types.subtypeOf(Object.class)); in testNewWildcardType_serializable()
|
D | TypeTokenTest.java | 456 TypeToken.of(Types.subtypeOf(Object.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsClass() 459 TypeToken.of(Types.subtypeOf(Object[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsClass() 463 assertNull(TypeToken.of(Types.subtypeOf(CharSequence.class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsInterface() 466 TypeToken.of(Types.subtypeOf(CharSequence[].class)).getGenericSuperclass()); in testGetGenericSuperclass_wildcard_boundIsInterface() 526 assertThat(TypeToken.of(Types.subtypeOf(Object.class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_boundIsClass() 527 assertThat(TypeToken.of(Types.subtypeOf(Object[].class)).getGenericInterfaces()).isEmpty(); in testGetGenericInterfaces_wildcard_boundIsClass() 532 makeUnmodifiable(TypeToken.of(Types.subtypeOf(interfaceType.getType())).getGenericInterfaces()) in testGetGenericInterfaces_wildcard_boundIsInterface() 616 Type wildcardType = Types.subtypeOf(Object[].class); in testAssignableWildcardBoundedByArrayToArrayClass() 632 TypeToken<?> subtypeOfArray = TypeToken.of(Types.subtypeOf(Object[].class)); in testAssignableArrayClassToBoundedWildcard() 661 assertTrue(supertypeOfString.isSupertypeOf(Types.subtypeOf(String.class))); in testAssignableNonParameterizedClassToWildcard() [all …]
|
D | TypeVisitorTest.java | 58 WildcardType type = Types.subtypeOf(String.class); in testVisitWildcardType()
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | TypeNameTest.java | 154 assertEqualsHashCodeAndToString(WildcardTypeName.subtypeOf(Object.class), in equalsAndHashCodeWildcardTypeName() 155 WildcardTypeName.subtypeOf(Object.class)); in equalsAndHashCodeWildcardTypeName() 156 assertEqualsHashCodeAndToString(WildcardTypeName.subtypeOf(Serializable.class), in equalsAndHashCodeWildcardTypeName() 157 WildcardTypeName.subtypeOf(Serializable.class)); in equalsAndHashCodeWildcardTypeName()
|
D | AbstractTypesTest.java | 217 WildcardTypeName type = WildcardTypeName.subtypeOf(CharSequence.class); in wildcardExtendsType() 222 WildcardTypeName type = WildcardTypeName.subtypeOf(Object.class); in wildcardExtendsObject()
|
/external/dagger2/java/dagger/grpc/server/processor/ |
D | GrpcServiceModuleGenerator.java | 21 import static com.squareup.javapoet.WildcardTypeName.subtypeOf; 42 ClassName.get(List.class), subtypeOf(IoGrpc.SERVER_INTERCEPTOR));
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | PredicatesTest.java | 596 Predicate<Class<?>> isInteger = Predicates.subtypeOf(Integer.class); in testSubtypeOf_apply() 610 Predicate<Class<?>> isNumber = Predicates.subtypeOf(Number.class); in testSubtypeOf_subclass() 618 Predicate<Class<?>> isComparable = Predicates.subtypeOf(Comparable.class); in testSubtypeOf_interface() 627 .addEqualityGroup(Predicates.subtypeOf(Integer.class)) in testSubtypeOf_equality() 628 .addEqualityGroup(Predicates.subtypeOf(Number.class)) in testSubtypeOf_equality() 629 .addEqualityGroup(Predicates.subtypeOf(Float.class)) in testSubtypeOf_equality() 635 Predicate<Class<?>> predicate = Predicates.subtypeOf(Integer.class); in testSubtypeOf_serialization()
|
/external/guava/android/guava-tests/test/com/google/common/base/ |
D | PredicatesTest.java | 596 Predicate<Class<?>> isInteger = Predicates.subtypeOf(Integer.class); in testSubtypeOf_apply() 610 Predicate<Class<?>> isNumber = Predicates.subtypeOf(Number.class); in testSubtypeOf_subclass() 618 Predicate<Class<?>> isComparable = Predicates.subtypeOf(Comparable.class); in testSubtypeOf_interface() 627 .addEqualityGroup(Predicates.subtypeOf(Integer.class)) in testSubtypeOf_equality() 628 .addEqualityGroup(Predicates.subtypeOf(Number.class)) in testSubtypeOf_equality() 629 .addEqualityGroup(Predicates.subtypeOf(Float.class)) in testSubtypeOf_equality() 635 Predicate<Class<?>> predicate = Predicates.subtypeOf(Integer.class); in testSubtypeOf_serialization()
|
/external/guice/core/test/com/google/inject/ |
D | TypeLiteralTest.java | 61 TypeLiteral<?> b = TypeLiteral.get(Types.listOf(Types.subtypeOf(CharSequence.class))); in testWithWildcardType() 104 assertEquals(Object.class, TypeLiteral.get(Types.subtypeOf(Runnable.class)).getRawType()); in testTypeLiteralsMustHaveRawTypes()
|
D | TypeLiteralInjectionTest.java | 90 assertEquals(TypeLiteral.get(listOf(Types.subtypeOf(Integer.class))), b.listOfWildcardT); in testInjectTypeLiteralWithClassTypes()
|
/external/guice/core/src/com/google/inject/util/ |
D | Types.java | 78 public static WildcardType subtypeOf(Type bound) { in subtypeOf() method in Types
|
/external/javassist/src/test/javassist/ |
D | JvstTest.java | 103 assertTrue(cc.subtypeOf(cc)); in testSubtype() 104 assertTrue(cc.subtypeOf(sloader.get("test1.SubtypeA"))); in testSubtype() 105 assertTrue(cc.subtypeOf(sloader.get("test1.SubtypeB"))); in testSubtype() 106 assertTrue(cc.subtypeOf(sloader.get("test1.SubtypeC"))); in testSubtype() 107 assertTrue(cc.subtypeOf(sloader.get("java.lang.Object"))); in testSubtype() 108 assertTrue(!cc.subtypeOf(sloader.get("java.lang.String"))); in testSubtype() 881 assertTrue(sloader.get(s).subtypeOf(sloader.get(t)) == b); in testSubtypeOf2()
|
D | JvstTest4.java | 383 assertTrue(at.subtypeOf(sloader.get(java.lang.Object.class.getName()))); in testArrayType() 384 assertTrue(at.subtypeOf(intfs[0])); in testArrayType() 385 assertTrue(at.subtypeOf(intfs[1])); in testArrayType() 386 assertTrue(at.subtypeOf(intfs[1])); in testArrayType() 388 assertFalse(at.subtypeOf(subt)); in testArrayType()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Types.java | 78 return subtypeOf(newArrayType(upperBounds[0])); in newArrayType() 155 static WildcardType subtypeOf(Type upperBound) { in subtypeOf() method in Types 217 return subtypeOf(componentType); in subtypeOfComponentType()
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | Types.java | 78 return subtypeOf(newArrayType(upperBounds[0])); in newArrayType() 156 static WildcardType subtypeOf(Type upperBound) { in subtypeOf() method in Types 220 return subtypeOf(componentType); in subtypeOfComponentType()
|
/external/dagger2/java/dagger/hilt/processor/internal/root/ |
D | TestComponentDataSupplierGenerator.java | 43 ParameterizedTypeName.get(ClassNames.CLASS, WildcardTypeName.subtypeOf(TypeName.OBJECT));
|
/external/javassist/src/main/javassist/convert/ |
D | TransformCall.java | 96 if (clazz.subtypeOf(declClazz)) in matchClass()
|