Searched refs:isAssignable (Results 1 – 4 of 4) sorted by relevance
/external/guava/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 423 return isAssignable(checkNotNull(type), runtimeType); in isAssignableFrom() 746 private static boolean isAssignable(Type from, Type to) { 780 if (isAssignable(from, to)) { 798 return isAssignable(from, supertypeBound(to)) && isAssignableBySubtypeBound(from, to); 810 return isAssignable(toSubtypeBound, fromSubtypeBound); 843 return isAssignable(fromClass.getComponentType(), to.getGenericComponentType()); 846 return isAssignable(fromArrayType.getGenericComponentType(), to.getGenericComponentType()); 858 return isAssignable(from.getGenericComponentType(), toClass.getComponentType()); 861 return isAssignable(from.getGenericComponentType(), toArrayType.getGenericComponentType());
|
/external/desugar/java/com/google/devtools/common/options/processor/ |
D | OptionProcessor.java | 143 if (!typeUtils.isAssignable(thisOptionClass, optionsBase)) { in checkInOptionBase() 192 if (!typeUtils.isAssignable(optionDeclaredType.asElement().asType(), listType)) { in getAcceptedConverterReturnTypes() 308 if (typeUtils.isAssignable(convertMethodResultType, acceptedConverterReturnType)) { in checkProvidedConverter()
|
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/ |
D | RealObjectValidator.java | 66 if (!types.isAssignable(impClass, elemType)) { in visitVariable()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenTest.java | 876 assertFalse(Assignability.of().isAssignable()); in testIsAssignableFrom_resolved() 877 assertTrue(new Assignability<Integer, Integer>() {}.isAssignable()); in testIsAssignableFrom_resolved() 878 assertTrue(new Assignability<Integer, Object>() {}.isAssignable()); in testIsAssignableFrom_resolved() 879 assertFalse(new Assignability<Integer, String>() {}.isAssignable()); in testIsAssignableFrom_resolved() 885 assertTrue(new Assignability<N11, N1>() {}.isAssignable()); in assignabilityTestWithTypeVariables() 886 assertTrue(new Assignability<N11, Number>() {}.isAssignable()); in assignabilityTestWithTypeVariables() 887 assertFalse(new Assignability<Number, N11>() {}.isAssignable()); in assignabilityTestWithTypeVariables() 1599 boolean isAssignable() { in isAssignable() method in TypeTokenTest.Assignability
|