Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for maximumWeight (0.08 sec)

  1. android/guava/src/com/google/common/cache/CacheBuilder.java

        if (weigher == null) {
          checkState(maximumWeight == UNSET_INT, "maximumWeight requires weigher");
        } else {
          if (strictParsing) {
            checkState(maximumWeight != UNSET_INT, "weigher requires maximumWeight");
          } else {
            if (maximumWeight == UNSET_INT) {
              LoggerHolder.logger.log(
                  Level.WARNING, "ignoring weigher specified without maximumWeight");
            }
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

      public void testEviction_setMaxSegmentWeight() {
        IdentityLoader<Object> loader = identityLoader();
        for (int i = 1; i < 1000; i++) {
          LoadingCache<Object, Object> cache =
              CacheBuilder.newBuilder().maximumWeight(i).weigher(constantWeigher(1)).build(loader);
          assertEquals(i, CacheTesting.getTotalSegmentSize(cache));
        }
      }
    
      public void testEviction_maxSizeOneSegment() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 15K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder.maximumWeight(16));
        assertThrows(IllegalStateException.class, () -> builder.maximumSize(16));
      }
    
      @GwtIncompatible // maximumWeight
      public void testMaximumWeight_withoutWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumWeight(1);
        assertThrows(IllegalStateException.class, () -> builder.build(identityLoader()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder.maximumWeight(16));
        assertThrows(IllegalStateException.class, () -> builder.maximumSize(16));
      }
    
      @GwtIncompatible // maximumWeight
      public void testMaximumWeight_withoutWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumWeight(1);
        assertThrows(IllegalStateException.class, () -> builder.build(identityLoader()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    new TestStringCacheGenerator(
                        createCacheBuilder()
                            .maximumWeight(Integer.MAX_VALUE)
                            .weigher(new SerializableWeigher<String, String>())))
                .named("LocalCache with maximumWeight")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top