- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 244 for converters (0.15 sec)
-
src/test/java/org/codelibs/core/beans/converter/TimeConverterTest.java
*/ @Test public void testGetAsObjectAndGetAsString() throws Exception { final TimeConverter converter = new TimeConverter("HH:mm:ss"); final java.sql.Time result = (java.sql.Time) converter.getAsObject("12:34:56"); System.out.println(result); assertThat(converter.getAsString(result), is("12:34:56")); } /** * @throws Exception */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
public void testStringConverter_convert() { Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); assertEquals(TestEnum.CHEETO, converter.convert("CHEETO")); assertEquals(TestEnum.HONDA, converter.convert("HONDA")); assertEquals(TestEnum.POODLE, converter.convert("POODLE")); assertNull(converter.convert(null)); assertNull(converter.reverse().convert(null)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-nested-models.md
Você também pode usar modelos Pydantic como subtipos de `list`, `set`, etc: ```Python hl_lines="20" {!../../docs_src/body_nested_models/tutorial006.py!} ``` Isso vai esperar(converter, validar, documentar, etc) um corpo JSON tal qual: ```JSON hl_lines="11" { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": [ "rock",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/NetServerEnum2Response.java
} @Override public String toString () { return new String( "NetServerEnum2Response[" + super.toString() + ",status=" + this.getStatus() + ",converter=" + this.converter + ",entriesReturned=" + this.getNumEntries() + ",totalAvailableEntries=" + this.totalAvailableEntries + ",lastName=" + this.lastName + "]"); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 5.6K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocLinkConverterTest.groovy
final ClassMetaDataRepository<ClassMetaData> repository = Mock() final GenerationListener listener = Mock() final JavadocLinkConverter converter = new JavadocLinkConverter(document, nameResolver, linkRenderer, repository) def convertsClassNameToLink() { when: def link = converter.resolve('someName', classMetaData, listener) then: format(link) == '<someLinkElement/>'
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 8.7K bytes - Viewed (0) -
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) -
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) -
src/test/java/org/codelibs/core/beans/converter/TimestampConverterTest.java
@Test public void testGetAsObjectAndGetAsString() throws Exception { final TimestampConverter converter = new TimestampConverter("yyyy/MM/dd HH:mm:ss"); final java.sql.Timestamp result = (java.sql.Timestamp) converter.getAsObject("2008/12/31 12:34:56"); System.out.println(result); assertThat(converter.getAsString(result), is("2008/12/31 12:34:56")); } /** * @throws Exception */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
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) -
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)