Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for 9000 (0.33 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec));
      }
    
      public void testParse_maximumSizeRepeated() {
        assertThrows(IllegalArgumentException.class, () -> parse("maximumSize=10, maximumSize=20"));
      }
    
      public void testParse_maximumWeight() {
        CacheBuilderSpec spec = parse("maximumWeight=9000");
        assertNull(spec.initialCapacity);
        assertEquals(9000, spec.maximumWeight.longValue());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec));
      }
    
      public void testParse_maximumSizeRepeated() {
        assertThrows(IllegalArgumentException.class, () -> parse("maximumSize=10, maximumSize=20"));
      }
    
      public void testParse_maximumWeight() {
        CacheBuilderSpec spec = parse("maximumWeight=9000");
        assertNull(spec.initialCapacity);
        assertEquals(9000, spec.maximumWeight.longValue());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

                    InetAddresses.forString("2001:0000:4136:e378:8000:63bf:3fff:fdd2")))
            .isNotEqualTo(InetAddresses.forString("192.0.2.45"));
    
        // 2 Teredo addresses differing in their embedded IPv4 addresses should hash to different
        // values.
        assertThat(
                InetAddresses.getCoercedIPv4Address(
                    InetAddresses.forString("2001:0000:4136:e378:8000:63bf:3fff:fdd2")))
            .isNotEqualTo(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/InetAddressesTest.java

                    InetAddresses.forString("2001:0000:4136:e378:8000:63bf:3fff:fdd2")))
            .isNotEqualTo(InetAddresses.forString("192.0.2.45"));
    
        // 2 Teredo addresses differing in their embedded IPv4 addresses should hash to different
        // values.
        assertThat(
                InetAddresses.getCoercedIPv4Address(
                    InetAddresses.forString("2001:0000:4136:e378:8000:63bf:3fff:fdd2")))
            .isNotEqualTo(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertEquals(0.2, limiter.acquire(), EPSILON);
      }
    
      public void testOneSecondBurst() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        stopwatch.sleepMillis(1000); // max capacity reached
        stopwatch.sleepMillis(1000); // this makes no difference
        limiter.acquire(1); // R0.00, since it's the first request
    
        limiter.acquire(1); // R0.00, from capacity
        limiter.acquire(3); // R0.00, from capacity
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * second. This could be accomplished by requiring a permit per byte, and specifying a rate of 5000
     * permits per second:
     *
     * <pre>{@code
     * final RateLimiter rateLimiter = RateLimiter.create(5000.0); // rate = 5000 permits per second
     * void submitPacket(byte[] packet) {
     *   rateLimiter.acquire(packet.length);
     *   networkService.send(packet);
     * }
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        testThreshold(0, 100, true, false);
        testThreshold(10, 100, true, false);
        testThreshold(100, 100, true, false);
        testThreshold(1000, 100, true, false);
        testThreshold(0, 100, false, false);
        testThreshold(10, 100, false, false);
        testThreshold(100, 100, false, false);
        testThreshold(1000, 100, false, false);
      }
    
      private void testThreshold(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        tester.testAllPublicStaticMethods(BloomFilter.class);
      }
    
      /** Tests that we never get an optimal hashes number of zero. */
      public void testOptimalHashes() {
        for (int n = 1; n < 1000; n++) {
          for (int m = 0; m < 1000; m++) {
            assertTrue(BloomFilter.optimalNumOfHashFunctions(n, m) > 0);
          }
        }
      }
    
      // https://code.google.com/p/guava-libraries/issues/detail?id=1781
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

      @GwtIncompatible // blocking wait
      public void testRunIdempotency() throws Exception {
        final int numThreads = 10;
        final ExecutorService executor = Executors.newFixedThreadPool(numThreads);
        for (int i = 0; i < 1000; i++) {
          final AtomicInteger counter = new AtomicInteger();
          final TrustedListenableFutureTask<Integer> task =
              TrustedListenableFutureTask.create(
                  new Callable<Integer>() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        long startTime = System.nanoTime();
        long ns = millis * 1000 * 1000;
        for (; ; ) {
          if (millis > 0L) Thread.sleep(millis);
          else // too short to sleep
          Thread.yield();
          long d = ns - (System.nanoTime() - startTime);
          if (d > 0L) millis = d / (1000 * 1000);
          else break;
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
Back to top