Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for toDouble (0.06 sec)

  1. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                    args[index] = FloatConversionUtil.toFloat(args[index]);
                    return true;
                } else if (paramTypes[index] == double.class) {
                    args[index] = DoubleConversionUtil.toDouble(args[index]);
                    return true;
                }
            } else {
                if (paramTypes[index] == Byte.class) {
                    args[index] = ByteConversionUtil.toByte(args[index]);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

       * garbage-collected, even if there are no more instances of FinalizableReferenceQueue itself.
       * The code in FinalizableReferenceQueue goes to considerable trouble to ensure that there are
       * no such references and the tests here check that that trouble has not been in vain.
       *
       * When we reference FinalizableReferenceQueue in this test, we are referencing a class that is
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. CONTRIBUTING.md

    [Gradle Community Resources](https://gradle.org/resources/).
    
    This guide will help you to...
    
    * maximize the chance of your changes being accepted
    * work on the Gradle code base
    * get help if you encounter trouble
    
    ## Before you start
    
    Before starting to work on a feature or a bug fix, please open an issue to discuss the use case or bug with us. This can save everyone a lot of time and frustration.
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Nov 05 15:15:33 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/TempFileCreator.java

            /*
             * I'm not sure that we could actually get here for *Android*: I would expect us to enter
             * the POSIX code path instead. And if we tried this code path, we'd have trouble unless we
             * were running under a new enough version of Android to support NIO.
             *
             * So this is probably just the "Windows Java 8" case. In that case, if we wanted *another*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    ```groovy
    interface NestedType {
        Property<String> getSomeProperty()
    }
    class Example {
        Property<NestedType> getNestedProperty()
    }
    ```
    
    This is unnecessary because users will have trouble creating instances of `NestedType` and merging different instances of `NestedType`. It's also more awkward for users to access the properties in the nested property.
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 15 20:00:57 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/input.go

    }
    
    func (in *Input) Next() ScanToken {
    	if in.peek {
    		in.peek = false
    		tok := in.peekToken
    		in.text = in.peekText
    		return tok
    	}
    	// If we cannot generate a token after 100 macro invocations, we're in trouble.
    	// The usual case is caught by Push, below, but be safe.
    	for nesting := 0; nesting < 100; {
    		tok := in.Stack.Next()
    		switch tok {
    		case '#':
    			if !in.beginningOfLine {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactHashSet.java

       *       collections intelligently fall back to a binary search tree if hash table collisions are
       *       detected. Rather than going to all the trouble of reimplementing this ourselves, we
       *       simply switch over to use the JDK implementation wholesale if probable hash flooding is
       *       detected, sacrificing the compactness guarantee in very rare cases in exchange for much
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top