Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for removeEldestEntry (0.07 seconds)

  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. 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;
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

    @GwtIncompatible // not worth using in GWT for now
    final class CompactLinkedHashMap<K extends @Nullable Object, V extends @Nullable Object>
        extends CompactHashMap<K, V> {
      // TODO(lowasser): implement removeEldestEntry so this can be used as a drop-in replacement
    
      /** Creates an empty {@code CompactLinkedHashMap} instance. */
      public static <K extends @Nullable Object, V extends @Nullable Object>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 14:59:07 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/CompactLinkedHashMap.java

    @GwtIncompatible // not worth using in GWT for now
    final class CompactLinkedHashMap<K extends @Nullable Object, V extends @Nullable Object>
        extends CompactHashMap<K, V> {
      // TODO(lowasser): implement removeEldestEntry so this can be used as a drop-in replacement
    
      /** Creates an empty {@code CompactLinkedHashMap} instance. */
      public static <K extends @Nullable Object, V extends @Nullable Object>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  5. 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