Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for concurrencyLevel (0.09 sec)

  1. android/guava-tests/test/com/google/common/collect/InternersTest.java

      }
    
      public void testWeak_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
            Interners.newBuilder().weak().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
        assertEquals(Strength.WEAK, internerImpl.map.keyStrength());
        assertEquals(concurrencyLevel, internerImpl.map.concurrencyLevel);
      }
    
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(parse(""), parse(""))
            .addEqualityGroup(parse("concurrencyLevel=7"), parse("concurrencyLevel=7"))
            .addEqualityGroup(parse("concurrencyLevel=15"), parse("concurrencyLevel=15"))
            .addEqualityGroup(parse("initialCapacity=7"), parse("initialCapacity=7"))
            .addEqualityGroup(parse("initialCapacity=15"), parse("initialCapacity=15"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(parse(""), parse(""))
            .addEqualityGroup(parse("concurrencyLevel=7"), parse("concurrencyLevel=7"))
            .addEqualityGroup(parse("concurrencyLevel=15"), parse("concurrencyLevel=15"))
            .addEqualityGroup(parse("initialCapacity=7"), parse("initialCapacity=7"))
            .addEqualityGroup(parse("initialCapacity=15"), parse("initialCapacity=15"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/InternersTest.java

      }
    
      public void testWeak_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
            Interners.newBuilder().weak().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
        assertEquals(Strength.WEAK, internerImpl.map.keyStrength());
        assertEquals(concurrencyLevel, internerImpl.map.concurrencyLevel);
      }
    
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        checkConcurrencyLevel(7, 8);
        checkConcurrencyLevel(8, 8);
      }
    
      private static void checkConcurrencyLevel(int concurrencyLevel, int segmentCount) {
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(concurrencyLevel));
        assertThat(map.segments).hasLength(segmentCount);
      }
    
      public void testSetInitialCapacity() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        checkConcurrencyLevel(7, 8);
        checkConcurrencyLevel(8, 8);
      }
    
      private static void checkConcurrencyLevel(int concurrencyLevel, int segmentCount) {
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(concurrencyLevel));
        assertThat(map.segments).hasLength(segmentCount);
      }
    
      public void testSetInitialCapacity() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        }
      }
    
      public void testEviction_maxSizeOneSegment() {
        IdentityLoader<Integer> loader = identityLoader();
        LoadingCache<Integer, Integer> cache =
            CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(MAX_SIZE).build(loader);
        for (int i = 0; i < 2 * MAX_SIZE; i++) {
          cache.getUnchecked(i);
          assertEquals(min(i + 1, MAX_SIZE), cache.size());
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
      public void testStats() {
        CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1).maximumSize(2);
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
        assertEquals(EMPTY_STATS, cache.stats());
    
        Object one = new Object();
        cache.getUnchecked(one);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
      public void testStats() {
        CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1).maximumSize(2);
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
        assertEquals(EMPTY_STATS, cache.stats());
    
        Object one = new Object();
        cache.getUnchecked(one);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheBuilder.java

       */
      @CanIgnoreReturnValue
      public CacheBuilder<K, V> concurrencyLevel(int concurrencyLevel) {
        checkState(
            this.concurrencyLevel == UNSET_INT,
            "concurrency level was already set to %s",
            this.concurrencyLevel);
        checkArgument(concurrencyLevel > 0);
        this.concurrencyLevel = concurrencyLevel;
        return this;
      }
    
      int getConcurrencyLevel() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
Back to top