Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 250 for castTo (0.23 sec)

  1. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
        Class<? extends T> implementation = getImplementation(type);
        if (implementation != null) {
          return get(implementation);
        }
        if (type == Stream.class) {
          return type.cast(Stream.empty());
        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
          return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0];
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/response-change-status-code.md

    Porém em alguns casos você precisa retornar um código de status diferente do padrão.
    
    ## Caso de uso { #use-case }
    
    Por exemplo, imagine que você deseja retornar um código de status HTTP de "OK" `200` por padrão.
    
    Mas se o dado não existir, você quer criá-lo e retornar um código de status HTTP de "CREATED" `201`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

     *
     * <p><strong>This .java file should never be consumed by javac.</strong>
     *
     * @author Hayward Chan
     */
    final class Platform {
      // Class.cast is not supported in GWT.
      static void checkCast(Class<?> clazz, Object obj) {}
    
      static <T> T[] clone(T[] array) {
        return (T[]) Arrays.copyOfRange(array, 0, array.length);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  4. fastapi/_compat/v2.py

        ]
        field_mapping, definitions = schema_generator.generate_definitions(inputs=inputs)
        for item_def in cast(dict[str, dict[str, Any]], definitions).values():
            if "description" in item_def:
                item_description = cast(str, item_def["description"]).split("\f")[0]
                item_def["description"] = item_description
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/request-form-models.md

    ///
    
    Você pode utilizar a configuração de modelo do Pydantic para `proibir` qualquer campo `extra`:
    
    {* ../../docs_src/request_form_models/tutorial002_an_py39.py hl[12] *}
    
    Caso um cliente tente enviar informações adicionais, ele receberá um retorno de **erro**.
    
    Por exemplo, se o cliente tentar enviar os campos de formulário:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableList.java

      int internalArrayEnd() {
        return size;
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int dstOff) {
        arraycopy(array, 0, dst, dstOff, size);
        return dstOff + size;
      }
    
      // The fake cast to E is safe because the creation methods only allow E's
      @Override
      @SuppressWarnings("unchecked")
      public E get(int index) {
        checkElementIndex(index, size);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. docs/es/docs/advanced/sub-applications.md

    {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 14:16] *}
    
    ### Montar la sub-aplicación { #mount-the-sub-application }
    
    En tu aplicación de nivel superior, `app`, monta la sub-aplicación, `subapi`.
    
    En este caso, se montará en el path `/subapi`:
    
    {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 19] *}
    
    ### Revisa la documentación automática de la API { #check-the-automatic-api-docs }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/sub-applications.md

    {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 14:16] *}
    
    ### Monte a sub-aplicação { #mount-the-sub-application }
    
    Na sua aplicação de nível superior, `app`, monte a sub-aplicação, `subapi`.
    
    Neste caso, ela será montada no path `/subapi`:
    
    {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 19] *}
    
    ### Verifique a documentação automática da API { #check-the-automatic-api-docs }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/header-params.md

    ///
    
    /// info | Informação
    
    Para declarar headers, você precisa usar `Header`, caso contrário, os parâmetros seriam interpretados como parâmetros de consulta.
    
    ///
    
    ## Conversão automática { #automatic-conversion }
    
    `Header` tem algumas funcionalidades a mais em relação a `Path`, `Query` e `Cookie`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

      ImmutableCollection<E> delegateCollection() {
        return delegate;
      }
    
      ImmutableList<? extends E> delegateList() {
        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return (UnmodifiableListIterator<E>) delegateList.listIterator(index);
      }
    
      @GwtIncompatible // not present in emulated superclass
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top