- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for removeEldestEntry (0.27 seconds)
-
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) -
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) -
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)