Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for removeEldestEntry (0.15 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/CapacityEnforcingMap.java

        super(initialCapacity, loadFactor, accessOrder);
        this.maximumSize = maximumSize;
        this.statsCounter = statsCounter;
        this.removalListener = removalListener;
      }
    
      @Override
      protected boolean removeEldestEntry(Entry<K, Timestamped<V>> ignored) {
        boolean removal = (maximumSize == LocalCache.UNSET_INT) ? false : (size() > maximumSize);
        if ((removalListener != null) && removal) {
          removalListener.onRemoval(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      }
    
      @Throws(IOException::class)
      fun trimToSize() {
        while (size > maxSize) {
          if (!removeOldestEntry()) return
        }
        mostRecentTrimFailed = false
      }
    
      /** Returns true if an entry was removed. This will return false if all entries are zombies. */
      private fun removeOldestEntry(): Boolean {
        for (toEvict in lruEntries.values) {
          if (!toEvict.zombie) {
            removeEntry(toEvict)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 34.7K bytes
    - Click Count (0)
Back to Top