Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 60 for subtypeOf (0.05 seconds)

  1. guava-tests/test/com/google/common/base/PredicatesTest.java

        assertTrue(isComparable.apply(Integer.class));
        assertTrue(isComparable.apply(Float.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Predicates.subtypeOf
      public void testSubtypeOf_equality() {
        new EqualsTester()
            .addEqualityGroup(Predicates.subtypeOf(Integer.class))
            .addEqualityGroup(Predicates.subtypeOf(Number.class))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 32.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(
            Types.subtypeOf(Object.class),
            TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType());
        assertEquals(
            Types.subtypeOf(Object[].class),
            Types.newArrayType(
                TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType()));
        assertEquals(
            int.class, TypeToken.of(Types.subtypeOf(int[].class)).getComponentType().getType());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 89K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        assertTrue(isComparable.apply(Integer.class));
        assertTrue(isComparable.apply(Float.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Predicates.subtypeOf
      public void testSubtypeOf_equality() {
        new EqualsTester()
            .addEqualityGroup(Predicates.subtypeOf(Integer.class))
            .addEqualityGroup(Predicates.subtypeOf(Number.class))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 32.3K bytes
    - Click Count (0)
  4. guava/src/com/google/common/reflect/Types.java

          } else {
            Type[] upperBounds = wildcard.getUpperBounds();
            checkArgument(upperBounds.length == 1, "Wildcard should have only one upper bound.");
            return subtypeOf(newArrayType(upperBounds[0]));
          }
        }
        return JavaVersion.CURRENT.newArrayType(componentType);
      }
    
      /**
       * Returns a type where {@code rawType} is parameterized by {@code arguments} and is owned by
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/Predicates.java

      /**
       * Returns a predicate that evaluates to {@code true} if the class being tested is assignable to
       * (is a subtype of) {@code clazz}. Example:
       *
       * {@snippet :
       * List<Class<?>> classes = Arrays.asList(
       *     Object.class, String.class, Number.class, Long.class);
       * return Iterables.filter(classes, subtypeOf(Number.class));
       * }
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/reflect/Types.java

          } else {
            Type[] upperBounds = wildcard.getUpperBounds();
            checkArgument(upperBounds.length == 1, "Wildcard should have only one upper bound.");
            return subtypeOf(newArrayType(upperBounds[0]));
          }
        }
        return JavaVersion.CURRENT.newArrayType(componentType);
      }
    
      /**
       * Returns a type where {@code rawType} is parameterized by {@code arguments} and is owned by
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy

            return methodParametersFromSignature(methodInSubClass) == methodParametersFromSignature(method)
                // Subclass can override method return type
                && methodInSubClass.returnType.subtypeOf(method.returnType)
        }
    
        /**
         * Returns method parameters from method signature, e.g. "(Ljava/lang/String;I)V" -> "(Ljava/lang/String;I)"
         */
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

     * annotated by {@link TestSubtype}.
     *
     * <p>These declaration methods rely on Java static type checking to make sure what we want to
     * assert as subtypes are really subtypes according to javac. For example:
     *
     * {@snippet :
     * class MySubtypeTests extends SubtypeTester {
     *   @TestSubtype(suppressGetSubtype = true, suppressGetSupertype = true)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 25 23:29:58 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/reflect/SubtypeTester.java

     * annotated by {@link TestSubtype}.
     *
     * <p>These declaration methods rely on Java static type checking to make sure what we want to
     * assert as subtypes are really subtypes according to javac. For example:
     *
     * {@snippet :
     * class MySubtypeTests extends SubtypeTester {
     *   @TestSubtype(suppressGetSubtype = true, suppressGetSupertype = true)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 25 23:29:58 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/body-nested-models.md

    The string will be checked to be a valid URL, and documented in JSON Schema / OpenAPI as such.
    
    ## Attributes with lists of submodels { #attributes-with-lists-of-submodels }
    
    You can also use Pydantic models as subtypes of `list`, `set`, etc.:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    This will expect (convert, validate, document, etc.) a JSON body like:
    
    ```JSON hl_lines="11"
    {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.7K bytes
    - Click Count (0)
Back to Top