Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for removeEldestEntry (0.05 sec)

  1. src/main/java/org/codelibs/core/collection/LruHashMap.java

         *
         * @return the upper limit on the number of entries
         */
        public int getLimitSize() {
            return limitSize;
        }
    
        @Override
        protected boolean removeEldestEntry(final Map.Entry<K, V> entry) {
            return size() > limitSize;
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          this.maximumSize = maximumSize;
          this.statsCounter = statsCounter;
          this.removalListener = removalListener;
        }
    
        @Override
        protected boolean removeEldestEntry(Entry<K, Timestamped<V>> ignored) {
          boolean removal = (maximumSize == UNSET_INT) ? false : (size() > maximumSize);
          if ((removalListener != null) && removal) {
            removalListener.onRemoval(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  3. 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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
Back to top