Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for removeEldestEntry (0.23 sec)

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

        }
    
        /**
         * エントリ数の上限を返します。
         *
         * @return エントリ数の上限
         */
        public int getLimitSize() {
            return limitSize;
        }
    
        @Override
        protected boolean removeEldestEntry(final Map.Entry<K, V> entry) {
            return size() > limitSize;
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactLinkedHashMap.java

    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    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>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    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>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. 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(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  5. okhttp/src/main/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)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
Back to top