- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 57 for Supertype (0.25 seconds)
-
android/guava/src/com/google/common/reflect/TypeToken.java
* * @since 19.0 */ public final boolean isSubtypeOf(Type supertype) { checkNotNull(supertype); if (supertype instanceof WildcardType) { // if 'supertype' is <? super Foo>, 'this' can be: // Foo, SubFoo, <? extends Foo>. // if 'supertype' is <? extends Foo>, nothing is a subtype. return any(((WildcardType) supertype).getLowerBounds()).isSupertypeOf(runtimeType); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<TwoTypeArgs<?, ?>> supertype = new TypeToken<TwoTypeArgs<?, ?>>() {}; TypeToken<StringForFirstTypeArg<String>> subtype = new TypeToken<StringForFirstTypeArg<String>>() {}; assertTrue(subtype.isSubtypeOf(supertype)); assertEquals( new TypeToken<StringForFirstTypeArg<?>>() {}, supertype.getSubtype(subtype.getRawType())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; Class<?> subclass = new Mall<Outdoor>().new Shop<Grocery>() {}.getClass(); assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports public static void testSubtypeOfInnerClass_staticAnonymousClass() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<TwoTypeArgs<?, ?>> supertype = new TypeToken<TwoTypeArgs<?, ?>>() {}; TypeToken<StringForFirstTypeArg<String>> subtype = new TypeToken<StringForFirstTypeArg<String>>() {}; assertTrue(subtype.isSubtypeOf(supertype)); assertEquals( new TypeToken<StringForFirstTypeArg<?>>() {}, supertype.getSubtype(subtype.getRawType())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; Class<?> subclass = new Mall<Outdoor>().new Shop<Grocery>() {}.getClass(); assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports public static void testSubtypeOfInnerClass_staticAnonymousClass() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/GraphsBridgeMethods.java
package com.google.common.graph; import java.util.Set; /** * Supertype for {@link Graphs}, containing the old signatures of methods whose signatures we've * changed. This provides binary compatibility for users who compiled against the old signatures. */ abstract class GraphsBridgeMethods { @SuppressWarnings("PreferredInterfaceType") public static <N> Graph<N> transitiveClosure(Graph<N> graph) { return Graphs.transitiveClosure(graph);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 625 bytes - Click Count (0) -
guava/src/com/google/common/collect/FilteredSetMultimap.java
* limitations under the License. */ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import org.jspecify.annotations.Nullable; /** * A supertype for filtered {@link SetMultimap} implementations. * * @author Louis Wasserman */ @GwtCompatible interface FilteredSetMultimap<K extends @Nullable Object, V extends @Nullable Object>Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
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()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeToInstanceMap.java
* * <p>Like any other {@code Map<Class, Object>}, this map may contain entries for primitive types, * and a primitive type and its corresponding wrapper type may map to different values. * * @param <B> the common supertype that all entries must share; often this is simply {@link Object} * @author Ben Yu * @since 13.0 */ @DoNotMock("Use ImmutableTypeToInstanceMap or MutableTypeToInstanceMap")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
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()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0)