Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 158 for converge (0.06 sec)

  1. 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)
  2. docs/pt/docs/advanced/response-directly.md

    Por exemplo, você não pode colocar um modelo do Pydantic em uma `JSONResponse` sem antes convertê-lo em um `dict` com todos os tipos de dados (como `datetime`, `UUID`, etc) convertidos para tipos compatíveis com JSON.
    
    Para esses casos, você pode usar o `jsonable_encoder` para converter seus dados antes de repassá-los para a resposta:
    
    ```Python hl_lines="6-7  21-22"
    {!../../docs_src/response_directly/tutorial001.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Ints.java

          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
       * Returns a serializable converter object that converts between strings and integers using {@link
       * Integer#decode} and {@link Integer#toString()}. The returned converter throws {@link
       * NumberFormatException} if the input string is invalid.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      public void testStringConverter_convert() {
        Converter<String, Integer> converter = Ints.stringConverter();
        assertThat(converter.convert("1")).isEqualTo((Integer) 1);
        assertThat(converter.convert("0")).isEqualTo((Integer) 0);
        assertThat(converter.convert("-1")).isEqualTo((Integer) (-1));
        assertThat(converter.convert("0xff")).isEqualTo((Integer) 255);
        assertThat(converter.convert("0xFF")).isEqualTo((Integer) 255);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/LongsTest.java

      public void testStringConverter_convert() {
        Converter<String, Long> converter = Longs.stringConverter();
        assertThat(converter.convert("1")).isEqualTo((Long) 1L);
        assertThat(converter.convert("0")).isEqualTo((Long) 0L);
        assertThat(converter.convert("-1")).isEqualTo((Long) (-1L));
        assertThat(converter.convert("0xff")).isEqualTo((Long) 255L);
        assertThat(converter.convert("0xFF")).isEqualTo((Long) 255L);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testStringConverter_convert() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0.0")).isEqualTo((Float) 0.0f);
        assertThat(converter.convert("-1.0")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0")).isEqualTo((Float) 0.0f);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testStringConverter_convert() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0.0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1.0")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0")).isEqualTo((Double) 0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testStringConverter_convert() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0.0")).isEqualTo((Float) 0.0f);
        assertThat(converter.convert("-1.0")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0")).isEqualTo((Float) 0.0f);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body-updates.md

    * Convert the copied model to something that can be stored in your DB (for example, using the `jsonable_encoder`).
        * This is comparable to using the model's `.model_dump()` method again, but it makes sure (and converts) the values to data types that can be converted to JSON, for example, `datetime` to `str`.
    * Save the data to your DB.
    * Return the updated model.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Longs.java

          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
       * Returns a serializable converter object that converts between strings and longs using {@link
       * Long#decode} and {@link Long#toString()}. The returned converter throws {@link
       * NumberFormatException} if the input string is invalid.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top