Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for 10 (0.12 sec)

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

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
        assertTrue("totalCapacity=" + totalCapacity + ", maxSize=" + maxSize, totalCapacity == maxSize);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
        assertTrue("totalCapacity=" + totalCapacity + ", maxSize=" + maxSize, totalCapacity == maxSize);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(futureResult.toString()).matches("CombinedFuture@\\w+\\[status=PENDING]");
        callableBlocking.countDown();
        // Need to wait for resultFuture to be returned.
        assertTrue(executor.awaitTermination(10, SECONDS));
        // But once the async function has returned a future we can include that in the toString
        assertThat(futureResult.toString())
            .matches(
                "CombinedFuture@\\w+\\[status=PENDING,"
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

        }
    
        // Find the lowest power-of-two segmentCount that exceeds concurrencyLevel, unless
        // maximumSize/Weight is specified in which case ensure that each segment gets at least 10
        // entries. The special casing for size-based eviction is only necessary because that eviction
        // happens per segment instead of globally, so too many segments compared to the maximum size
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(futureResult.toString()).matches("CombinedFuture@\\w+\\[status=PENDING]");
        callableBlocking.countDown();
        // Need to wait for resultFuture to be returned.
        assertTrue(executor.awaitTermination(10, SECONDS));
        // But once the async function has returned a future we can include that in the toString
        assertThat(futureResult.toString())
            .matches(
                "CombinedFuture@\\w+\\[status=PENDING,"
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

      // Overall configuration
      @Param SampleMatcherConfig config;
    
      // Length of string to match against
      @Param({"64", "1024"})
      int length;
    
      // Percent of string that the CharMatcher matches
      @Param({"0", "10", "50", "100"})
      int percent;
    
      // Whether to use a precomputed CharMatcher
      @Param("true")
      boolean precomputed;
    
      enum Size {
        DEFAULT,
        SMALL;
      }
    
      @Param Size size;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

        }
    
        // Find the lowest power-of-two segmentCount that exceeds concurrencyLevel, unless
        // maximumSize/Weight is specified in which case ensure that each segment gets at least 10
        // entries. The special casing for size-based eviction is only necessary because that eviction
        // happens per segment instead of globally, so too many segments compared to the maximum size
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

      // Overall configuration
      @Param SampleMatcherConfig config;
    
      // Length of string to match against
      @Param({"64", "1024"})
      int length;
    
      // Percent of string that the CharMatcher matches
      @Param({"0", "10", "50", "100"})
      int percent;
    
      // Whether to use a precomputed CharMatcher
      @Param("true")
      boolean precomputed;
    
      enum Size {
        DEFAULT,
        SMALL;
      }
    
      @Param Size size;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
Back to top