Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 292 for Converter (0.04 sec)

  1. 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 :
    
    {* ../../docs_src/response_directly/tutorial001.py hl[6:7,21:22] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

         */
        protected BooleanConversionUtil() {
        }
    
        /**
         * Converts to {@link Boolean}.
         *
         * @param o
         *            The object to convert
         * @return The converted {@link Boolean}
         */
        public static Boolean toBoolean(final Object o) {
            return switch (o) {
            case null -> null;
            case Boolean b -> b;
            case Number n -> n.intValue() != 0;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/RenderDataUtil.java

        }
    
        /**
         * Registers a value in the render data with the specified key.
         * If the value is an Entity object, it will be converted to a Map using BeanUtil.
         * If the value is a Collection containing Entity objects, each Entity will be converted to a Map.
         * For other types of values, they are registered directly.
         *
         * @param data the RenderData object to register the value in
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/query/WildcardQueryCommand.java

        public WildcardQueryCommand() {
            super();
        }
    
        private static final Logger logger = LogManager.getLogger(WildcardQueryCommand.class);
    
        /**
         * Flag indicating whether wildcard terms should be converted to lowercase.
         */
        protected boolean lowercaseWildcard = true;
    
        @Override
        protected String getQueryClassName() {
            return WildcardQuery.class.getSimpleName();
        }
    
        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

        }
    
        /**
         * Converts to the appropriate {@link Number}.
         *
         * @param type
         *            Target type
         * @param o
         *            Source object
         * @return {@link Number} converted to {@literal type}
         */
        public static Object convertNumber(final Class<?> type, final Object o) {
            if (type == Integer.class) {
                return IntegerConversionUtil.toInteger(o);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/encoder.md

    # JSON Compatible Encoder
    
    Hay algunos casos en los que podrías necesitar convertir un tipo de dato (como un modelo de Pydantic) a algo compatible con JSON (como un `dict`, `list`, etc).
    
    Por ejemplo, si necesitas almacenarlo en una base de datos.
    
    Para eso, **FastAPI** proporciona una función `jsonable_encoder()`.
    
    ## Usando el `jsonable_encoder`
    
    Imaginemos que tienes una base de datos `fake_db` que solo recibe datos compatibles con JSON.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. docs/es/docs/advanced/dataclasses.md

    Así que, incluso con el código anterior que no usa Pydantic explícitamente, FastAPI está usando Pydantic para convertir esos dataclasses estándar en su propia versión de dataclasses de Pydantic.
    
    Y por supuesto, soporta lo mismo:
    
    * validación de datos
    * serialización de datos
    * documentación de datos, etc.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/Stats.java

        this.min = min;
        this.max = max;
      }
    
      /**
       * Returns statistics over a dataset containing the given values.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
      public static Stats of(Iterable<? extends Number> values) {
        StatsAccumulator accumulator = new StatsAccumulator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

                        final String converted = URLEncoder.encode(target, Constants.UTF_8);
                        if (target.equals(converted)) {
                            encodedBuf.append(Base64.getUrlEncoder().encodeToString(target.getBytes(Constants.CHARSET_UTF_8)));
                        } else {
                            encodedBuf.append(converted);
                        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/response-directly.md

    For example, you cannot put a Pydantic model in a `JSONResponse` without first converting it to a `dict` with all the data types (like `datetime`, `UUID`, etc) converted to JSON-compatible types.
    
    For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response:
    
    {* ../../docs_src/response_directly/tutorial001.py hl[6:7,21:22] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top