Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for maxWeight (0.07 sec)

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

        assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence);
        assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence);
        assertEquals(localCacheOne.maxWeight, localCacheTwo.maxWeight);
        assertEquals(localCacheOne.weigher, localCacheTwo.weigher);
        assertEquals(localCacheOne.expireAfterAccessNanos, localCacheTwo.expireAfterAccessNanos);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence);
        assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence);
        assertEquals(localCacheOne.maxWeight, localCacheTwo.maxWeight);
        assertEquals(localCacheOne.weigher, localCacheTwo.weigher);
        assertEquals(localCacheOne.expireAfterAccessNanos, localCacheTwo.expireAfterAccessNanos);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

          }
          if (weigher != OneWeigher.INSTANCE) {
            Object unused = builder.weigher(weigher);
            if (maxWeight != UNSET_INT) {
              builder.maximumWeight(maxWeight);
            }
          } else {
            if (maxWeight != UNSET_INT) {
              builder.maximumSize(maxWeight);
            }
          }
          if (ticker != null) {
            builder.ticker(ticker);
          }
          return builder;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        CacheTesting.processPendingNotifications(cache);
        assertEquals(MAX_SIZE, removalListener.getCount());
        CacheTesting.checkValidState(cache);
      }
    
      /**
       * With an unlimited-size cache with maxWeight of 0, entries weighing 0 should still be cached.
       * Entries with positive weight should not be cached (nor dump existing cache).
       */
      public void testEviction_maxWeight_zero() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top