Home
last modified time | relevance | path

Searched refs:Assignability (Results 1 – 1 of 1) sorted by relevance

/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenTest.java876 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()
1597 private static class Assignability<From, To> { class in TypeTokenTest
1603 static <From, To> Assignability<From, To> of() { in of()
1604 return new Assignability<From, To>(); in of()