Searched refs:isAssignable (Results 1 – 2 of 2) 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/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
|