- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 500 for convert (0.05 sec)
-
android/guava-tests/test/com/google/common/base/ConverterTest.java
assertNull(converter.convert(null)); assertNull(converter.reverse().convert(null)); assertEquals((Integer) 5, converter.convert("5")); assertEquals("5", converter.reverse().convert(5)); } // Null-passthrough violates our nullness annotations, so we don't support it under J2KT. @J2ktIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 01 16:09:28 UTC 2024 - 8K bytes - Viewed (0) -
compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java
})) .installationToolchainsSource(convert(request.getGlobalToolchainsSource())) .userToolchainsSource(convert(request.getUserToolchainsSource())) .build()); return new DefaultToolchainsBuildingResult( new PersistedToolchains(result.getEffectiveToolchains()), convert(result.getProblems())); } catch (ToolchainsBuilderException e) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.7K 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/en/docs/tutorial/encoder.md
# JSON Compatible Encoder There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc). For example, if you need to store it in a database. For that, **FastAPI** provides a `jsonable_encoder()` function. ## Using the `jsonable_encoder` Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 23:31:16 UTC 2024 - 1.6K bytes - Viewed (0) -
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) -
android/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) -
guava/src/com/google/common/base/Stopwatch.java
if (MINUTES.convert(nanos, NANOSECONDS) > 0) { return MINUTES; } if (SECONDS.convert(nanos, NANOSECONDS) > 0) { return SECONDS; } if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { return MILLISECONDS; } if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { return MICROSECONDS; } return NANOSECONDS; } private static String abbreviate(TimeUnit unit) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 9.3K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java
result.addDependency(convert(dependency, stereotypes)); } DependencyManagement mgmt = model.getDependencyManagement(); if (mgmt != null) { for (org.apache.maven.model.Dependency dependency : mgmt.getDependencies()) { result.addManagedDependency(convert(dependency, stereotypes)); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.1K 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)