类 LruCache<K,​V>

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.HashMap<K,​V>
java.util.LinkedHashMap<K,​V>
com.qiniu.android.dns.util.LruCache<K,​V>
所有已实现的接口:
java.io.Serializable, java.lang.Cloneable, java.util.Map<K,​V>

public final class LruCache<K,​V>
extends java.util.LinkedHashMap<K,​V>
Created by bailong on 15/6/18.
另请参阅:
序列化表格
  • 嵌套类概要

    从类继承的嵌套类/接口 java.util.AbstractMap

    java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
  • 构造器概要

    构造器
    构造器 说明
    LruCache()  
    LruCache​(int size)  
  • 方法概要

    修饰符和类型 方法 说明
    protected boolean removeEldestEntry​(java.util.Map.Entry<K,​V> eldest)  

    从类继承的方法 java.util.LinkedHashMap

    clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values

    从类继承的方法 java.util.HashMap

    clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size

    从类继承的方法 java.util.AbstractMap

    equals, hashCode, toString

    从类继承的方法 java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 java.util.Map

    compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
  • 构造器详细资料

    • LruCache

      public LruCache()
    • LruCache

      public LruCache​(int size)
  • 方法详细资料

    • removeEldestEntry

      protected boolean removeEldestEntry​(java.util.Map.Entry<K,​V> eldest)
      覆盖:
      removeEldestEntry 在类中 java.util.LinkedHashMap<K,​V>