Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 59 for Supertype (0.05 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilder.java

                        signatures.add(method.getOverrideSignature());
                    }
                }
            }
    
            for (ClassDoc supertype : classDoc.getSuperTypes()) {
                for (MethodDoc method: supertype.getClassMethods()){
                    if (signatures.add(method.getMetaData().getOverrideSignature())) {
                        classDoc.addClassMethod(method);
                    }
                }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.2K bytes
    - Click Count (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilder.java

            Map<String, PropertyDoc> props = new TreeMap<String, PropertyDoc>();
            List<ClassDoc> superTypes = classDoc.getSuperTypes();
            for (ClassDoc superType : superTypes) {
                LOG.info("Getting properties for {}", superType.getName());
                for (PropertyDoc propertyDoc : superType.getClassProperties()) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 6.2K bytes
    - Click Count (0)
Back to Top