Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isSupertypeOf (0.28 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          assertTrue(typeToken.toString(), unboundedToken.isSupertypeOf(typeToken));
        }
    
        assertFalse(upperBoundToken.isSupertypeOf(unboundedToken));
        assertTrue(upperBoundToken.isSupertypeOf(upperBoundToken));
        assertFalse(upperBoundToken.isSupertypeOf(lowerBoundToken));
        assertTrue(upperBoundToken.isSupertypeOf(concreteToken));
        assertTrue(upperBoundToken.isSupertypeOf(subtypeToken));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          assertTrue(typeToken.toString(), unboundedToken.isSupertypeOf(typeToken));
        }
    
        assertFalse(upperBoundToken.isSupertypeOf(unboundedToken));
        assertTrue(upperBoundToken.isSupertypeOf(upperBoundToken));
        assertFalse(upperBoundToken.isSupertypeOf(lowerBoundToken));
        assertTrue(upperBoundToken.isSupertypeOf(concreteToken));
        assertTrue(upperBoundToken.isSupertypeOf(subtypeToken));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/SubtypeTester.java

            .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()) {
          assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())).isEqualTo(paramType);
        }
        if (!spec.suppressGetSupertype()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

            .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()) {
          assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())).isEqualTo(paramType);
        }
        if (!spec.suppressGetSupertype()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/Invokable.java

      }
    
      /** Explicitly specifies the return type of this {@code Invokable}. */
      public final <R1 extends R> Invokable<T, R1> returning(TypeToken<R1> returnType) {
        if (!returnType.isSupertypeOf(getReturnType())) {
          throw new IllegalArgumentException(
              "Invokable is known to return " + getReturnType() + ", not " + returnType);
        }
        @SuppressWarnings("unchecked") // guarded by previous check
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          Invokable<?, ?> invokable = type.method(method);
          if (!invokable.isPrivate()
              && !invokable.isSynthetic()
              && invokable.isStatic()
              && type.isSupertypeOf(invokable.getReturnType())) {
            @SuppressWarnings("unchecked") // guarded by isAssignableFrom()
            Invokable<?, ? extends T> factory = (Invokable<?, ? extends T>) invokable;
            factories.add(factory);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top