Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for isSubtype (0.19 sec)

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

          return notSubtype(arg); // isSubtype() currently incorrectly considers it a subtype.
        }
      }
    
      private static class WildcardSubtypingTests extends SubtypeTester {
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Iterable<?> noBounds(List<?> list) {
          return isSubtype(list);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(arg); // isSubtype() currently incorrectly considers it a subtype.
        }
      }
    
      private static class WildcardSubtypingTests extends SubtypeTester {
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Iterable<?> noBounds(List<?> list) {
          return isSubtype(list);
        }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/SubtypeTester.java

      /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */
      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

      /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */
      final <T> T isSubtype(T sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

        Type subtype = new TypeCapture<TypedKeyMap<T>>() {}.capture();
        assertEquals(
            new TypeCapture<TypedKeyMap<String>>() {}.capture(),
            new TypeResolver()
                .where(
                    new TypeCapture<Map<Integer, T>>() {}.capture(),
                    new TypeCapture<Map<?, String>>() {}.capture())
                .resolveType(subtype));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/MediaType.java

        return create(AUDIO_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "font" type and the given subtype.
       *
       * @throws IllegalArgumentException if subtype is invalid
       */
      static MediaType createFontType(String subtype) {
        return create(FONT_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "image" type and the given subtype.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/TypeToken.java

        @SuppressWarnings("unchecked") // guarded by the isAssignableFrom() statement above
        TypeToken<? extends T> subtype = (TypeToken<? extends T>) of(resolvedTypeArgs);
        checkArgument(
            subtype.isSubtypeOf(this), "%s does not appear to be a subtype of %s", subtype, this);
        return subtype;
      }
    
      /**
       * Returns true if this type is a supertype of the given {@code type}. "Supertype" is defined
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      }
    
      @Test fun testInvalidParse() {
        assertInvalid("", "No subtype found for: \"\"")
        assertInvalid("/", "No subtype found for: \"/\"")
        assertInvalid("text", "No subtype found for: \"text\"")
        assertInvalid("text/", "No subtype found for: \"text/\"")
        assertInvalid("te<t/plain", "No subtype found for: \"te<t/plain\"")
        assertInvalid(" text/plain", "No subtype found for: \" text/plain\"")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/MediaType.kt

        level = DeprecationLevel.ERROR,
      )
      fun type(): String = type
    
      @JvmName("-deprecated_subtype")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "subtype"),
        level = DeprecationLevel.ERROR,
      )
      fun subtype(): String = subtype
    
      /**
       * Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a
       * Content-Type header.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        }
        ParameterizedType subtype =
            (ParameterizedType)
                new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub.class).getType();
        assertEquals(Outer.Sub.class, subtype.getRawType());
        assertThat(subtype.getActualTypeArguments()[0]).isInstanceOf(WildcardType.class);
        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top