- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for isSubtypeOf (0.18 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports public static void testSubtypeOfStaticAnonymousClass() { Class<?> superclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); assertTrue(TypeToken.of(superclass).isSubtypeOf(superclass)); assertFalse(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
Type paramType = getOnlyParameterType(); TestSubtype spec = method.getAnnotation(TestSubtype.class); assertWithMessage("%s is subtype of %s", paramType, returnType) .that(TypeToken.of(paramType).isSubtypeOf(returnType)) .isTrue(); assertWithMessage("%s is supertype of %s", returnType, paramType) .that(TypeToken.of(returnType).isSupertypeOf(paramType)) .isTrue(); if (!spec.suppressGetSubtype()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
new TypeToken<SingleGenericExtendsBase<String>>() {}; assertTrue(subtype.isSubtypeOf(supertype)); ParameterizedType actualSubtype = (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType(); assertEquals(SingleGenericExtendsBase.class, actualSubtype.getRawType()); assertTrue(TypeToken.of(actualSubtype).isSubtypeOf(supertype)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
Type paramType = getOnlyParameterType(); TestSubtype spec = method.getAnnotation(TestSubtype.class); assertWithMessage("%s is subtype of %s", paramType, returnType) .that(TypeToken.of(paramType).isSubtypeOf(returnType)) .isTrue(); assertWithMessage("%s is supertype of %s", returnType, paramType) .that(TypeToken.of(returnType).isSupertypeOf(paramType)) .isTrue(); if (!spec.suppressGetSubtype()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
new TypeToken<SingleGenericExtendsBase<String>>() {}; assertTrue(subtype.isSubtypeOf(supertype)); ParameterizedType actualSubtype = (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType(); assertEquals(SingleGenericExtendsBase.class, actualSubtype.getRawType()); assertTrue(TypeToken.of(actualSubtype).isSubtypeOf(supertype)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
// may generate something like <capture#1-of ? extends Foo&SubFoo>. // Checking subtype between declared and actual type bounds // adds recursive isSubtypeOf() call and feels complicated. // There is no contract one way or another as long as isSubtypeOf() works as expected. combined.addAll(asList(typeParam.getBounds())); if (combined.size() > 1) { // Object is implicit and only useful if it's the only bound.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
// may generate something like <capture#1-of ? extends Foo&SubFoo>. // Checking subtype between declared and actual type bounds // adds recursive isSubtypeOf() call and feels complicated. // There is no contract one way or another as long as isSubtypeOf() works as expected. combined.addAll(asList(typeParam.getBounds())); if (combined.size() > 1) { // Object is implicit and only useful if it's the only bound.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0)