Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for evictEntries (0.13 seconds)

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

         * newest entry exceeds the maximum weight all on its own.
         *
         * @param newest the most recently added entry
         */
        @GuardedBy("this")
        void evictEntries(ReferenceEntry<K, V> newest) {
          if (!map.evictsBySize()) {
            return;
          }
    
          drainRecencyQueue();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/cache/LocalCache.java

         * newest entry exceeds the maximum weight all on its own.
         *
         * @param newest the most recently added entry
         */
        @GuardedBy("this")
        void evictEntries(ReferenceEntry<K, V> newest) {
          if (!map.evictsBySize()) {
            return;
          }
    
          drainRecencyQueue();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        Iterator<Object> it = originalMap.keySet().iterator();
        for (int i = 0; i < originalCount - maxSize; i++) {
          it.next();
          it.remove();
        }
        segment.evictEntries(entry);
        assertThat(map).hasSize(maxSize);
        assertThat(map).isEqualTo(originalMap);
      }
    
      // reference queues
    
      public void testDrainKeyReferenceQueueOnWrite() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        Iterator<Object> it = originalMap.keySet().iterator();
        for (int i = 0; i < originalCount - maxSize; i++) {
          it.next();
          it.remove();
        }
        segment.evictEntries(entry);
        assertThat(map).hasSize(maxSize);
        assertThat(map).isEqualTo(originalMap);
      }
    
      // reference queues
    
      public void testDrainKeyReferenceQueueOnWrite() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
Back to Top