Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for subtypes (0.06 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * it.
         */
        setResult(transformResult);
      }
    
      /** Template method for subtypes to actually run the transform. */
      @ForOverride
      @ParametricNullness
      abstract T doTransform(F function, @ParametricNullness I result) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
      abstract void setResult(@ParametricNullness T result);
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

          return resultString + superString;
        }
        return null;
      }
    
      /** Template method for subtypes to actually run the fallback. */
      @ForOverride
      @ParametricNullness
      abstract T doFallback(F fallback, X throwable) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
      abstract void setResult(@ParametricNullness T result);
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. 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
    
    You can also use Pydantic models as subtypes of `list`, `set`, etc.:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="18"
    {!> ../../docs_src/body_nested_models/tutorial006_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultimap.java

     * detailed at {@link ImmutableCollection}.
     *
     * <p><b>Warning:</b> avoid <i>direct</i> usage of {@link ImmutableMultimap} as a type (as with
     * {@link Multimap} itself). Prefer subtypes such as {@link ImmutableSetMultimap} or {@link
     * ImmutableListMultimap}, which have well-defined {@link #equals} semantics, thus avoiding a common
     * source of bugs and confusion.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Optional.java

       * restrictive. However, the ideal signature, {@code public <S super T> S or(S)}, is not legal
       * Java. As a result, some sensible operations involving subtypes are compile errors:
       *
       * <pre>{@code
       * Optional<Integer> optionalInt = getSomeOptionalInt();
       * Number value = optionalInt.or(0.5); // error
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. 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());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  7. 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());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/Types.java

          void visitClass(Class<?> t) {
            result.set(t.getComponentType());
          }
        }.visit(type);
        return result.get();
      }
    
      /**
       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals("application", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateAudioType() {
        MediaType newType = MediaType.createAudioType("yams");
        assertEquals("audio", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateFontType() {
        MediaType newType = MediaType.createFontType("yams");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        assertThrows(IllegalArgumentException.class, () -> Types.subtypeOf(int.class));
      }
    
      public void testNewWildcardType_serializable() {
        SerializableTester.reserializeAndAssert(Types.supertypeOf(String.class));
        SerializableTester.reserializeAndAssert(Types.subtypeOf(String.class));
        SerializableTester.reserializeAndAssert(Types.subtypeOf(Object.class));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top