Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 244 for converter (0.09 sec)

  1. guava/src/com/google/common/collect/Maps.java

       * com.google.common.base.Functions#forMap(Map, Object)}.
       *
       * @since 16.0
       */
      public static <A, B> Converter<A, B> asConverter(final BiMap<A, B> bimap) {
        return new BiMapConverter<>(bimap);
      }
    
      private static final class BiMapConverter<A, B> extends Converter<A, B> implements Serializable {
        private final BiMap<A, B> bimap;
    
        BiMapConverter(BiMap<A, B> bimap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

     * com.google.common.util.concurrent.ListenableFuture} can adapt between the two {@code Future}
     * types by using <a href="https://github.com/lukas-krecan/future-converter#java8-guava">{@code
     * net.javacrumbs.futureconverter.java8guava.FutureConverter}</a>.
     *
     * <h2>More on {@code CacheBuilder}</h2>
     *
     * {@code CacheBuilder} builds caches with any combination of the following features:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilder.java

     * com.google.common.util.concurrent.ListenableFuture} can adapt between the two {@code Future}
     * types by using <a href="https://github.com/lukas-krecan/future-converter#java8-guava">{@code
     * net.javacrumbs.futureconverter.java8guava.FutureConverter}</a>.
     *
     * <h2>More on {@code CacheBuilder}</h2>
     *
     * {@code CacheBuilder} builds caches with any combination of the following features:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  4. docs/fr/docs/advanced/response-directly.md

    Par exemple, vous ne pouvez pas mettre un modèle Pydantic dans une `JSONResponse` sans d'abord le convertir en un `dict` avec tous les types de données (comme `datetime`, `UUID`, etc.) convertis en types compatibles avec JSON.
    
    Pour ces cas, vous pouvez spécifier un appel à `jsonable_encoder` pour convertir vos données avant de les passer à une réponse :
    
    ```Python hl_lines="6-7  21-22"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. docs/fr/docs/python-types.md

    * **de la vérification de types**
    
    ...et **FastAPI** utilise ces mêmes déclarations pour :
    
    * **Définir les prérequis** : depuis les paramètres de chemins des requêtes, les entêtes, les corps, les dépendances, etc.
    * **Convertir des données** : depuis la requête vers les types requis.
    * **Valider des données** : venant de chaque requête :
        * Générant automatiquement des **erreurs** renvoyées au client quand la donnée est invalide.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:21:34 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. docs/es/docs/advanced/response-directly.md

    Para esos casos, puedes usar el `jsonable_encoder` para convertir tus datos antes de pasarlos a la respuesta:
    
    ```Python hl_lines="4 6 20 21"
    {!../../docs_src/response_directly/tutorial001.py!}
    ```
    
    /// note | Detalles Técnicos
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. docs/nl/docs/python-types.md

    ```
    
    Het aanroepen van dit programma leidt tot het volgende resultaat:
    
    ```
    John Doe
    ```
    
    De functie voert het volgende uit:
    
    * Neem een `first_name` en een `last_name`
    * Converteer de eerste letter van elk naar een hoofdletter met `title()`.
    ``
    * <abbr title="Voegt ze samen, als één. Met de inhoud van de een na de ander.">Voeg samen</abbr> met een spatie in het midden.
    
    ```Python hl_lines="2"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  8. docs_src/schema_extra_example/tutorial005_an_py39.py

                            "price": 35.4,
                            "tax": 3.2,
                        },
                    },
                    "converted": {
                        "summary": "An example with converted data",
                        "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                        "value": {
                            "name": "Bar",
                            "price": "35.4",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

        }
    
        /**
         * Parses a sequence of XML elements and converts them to the appropriate array type.
         *
         * @param parser The XML parser
         * @return Converted array instance
         */
        private Object parseArray(final MXParser parser, final TypeLiteral<?> toType) throws Exception {
            // convert to a collection first then convert that into an array
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/path-params.md

    ///
    
    #### Return *enumeration members*
    
    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    They will be converted to their corresponding values (strings in this case) before returning them to the client:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top