- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for toDouble (0.05 sec)
-
src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java
*/ public static Double toDouble(final Object o) { return toDouble(o, null); } /** * Converts to {@link Double}. * * @param o * The object to convert * @param pattern * The pattern string * @return The converted {@link Double} */ public static Double toDouble(final Object o, final String pattern) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/DoubleConversionUtilTest.java
public class DoubleConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToDouble() throws Exception { assertEquals(Double.valueOf("1000.5"), DoubleConversionUtil.toDouble("1,000.5")); } /** * @throws Exception */ public void testToPrimitiveDouble() throws Exception { assertEquals(1000.5, DoubleConversionUtil.toPrimitiveDouble("1,000.5"), 0); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/NumberConversionUtil.java
} else if (type == BigDecimal.class) { return BigDecimalConversionUtil.toBigDecimal(o); } else if (type == Double.class) { return DoubleConversionUtil.toDouble(o); } else if (type == Long.class) { return LongConversionUtil.toLong(o); } else if (type == Float.class) { return FloatConversionUtil.toFloat(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) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
val deltaMillis = 1000.0 val durationMillis = TimeUnit.MINUTES.toMillis((60 * 24).toLong()) assertThat(certificate.notBefore.time.toDouble()) .isCloseTo(now.toDouble(), deltaMillis) assertThat(certificate.notAfter.time.toDouble()) .isCloseTo(now.toDouble() + durationMillis, deltaMillis) } @Test fun customInterval() { // 5 seconds starting on 1970-01-01. val heldCertificate =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 22.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
assertThat(result).isInstanceOf(eventClass) } if (elapsedMs != -1L) { assertThat( TimeUnit.NANOSECONDS .toMillis(actualElapsedNs) .toDouble(), ).isCloseTo(elapsedMs.toDouble(), 100.0) } return result } fun recordedEventTypes() = eventSequence.map { it.name } fun clearAllEvents() { while (eventSequence.isNotEmpty()) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 9.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
while (webSocket.receivedPongCount() < 3) { Thread.sleep(50) } val elapsedUntilPong3 = System.nanoTime() - startNanos assertThat(TimeUnit.NANOSECONDS.toMillis(elapsedUntilPong3).toDouble()) .isCloseTo(1500.0, 250.0) // The client pinged the server 3 times, and it has ponged back 3 times. assertThat(webSocket.sentPingCount()).isEqualTo(3)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt
assertThat(result).isInstanceOf(eventClass) } if (elapsedMs != -1L) { assertThat( TimeUnit.NANOSECONDS .toMillis(actualElapsedNs) .toDouble(), ).isCloseTo(elapsedMs.toDouble(), 100.0) } return result } fun recordedEventTypes() = eventSequence.map { it.name } fun clearAllEvents() { while (eventSequence.isNotEmpty()) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 25.8K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
assertThat(cookie.value).isEqualTo("android") assertThat(cookie.commentURL).isNull() assertThat(cookie.discard).isFalse() // Converting to a fixed date can cause rounding! assertThat(cookie.maxAge.toDouble()).isCloseTo(60.0, 5.0) assertThat(cookie.path).isEqualTo("/path") assertThat(cookie.secure).isTrue() } @Test fun testQuotedAttributeValues() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt
while (e != null) { println(e) e = e.cause } } } println() } time = System.currentTimeMillis() - time println("Time: ${time.toDouble() / 1000} seconds\n") } fun main() { Security.insertProviderAt(OpenSSLProvider(), 1) var bootstrapClient = OkHttpClient() var names = listOf("google.com", "graph.facebook.com", "sdflkhfsdlkjdf.ee") try {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.2K bytes - Viewed (0)