LinkedHashMap 排序模式accessOrder-----LRU算法

在看LinkedHashMap源码时,能够发现读取操做的get()方法颇有意思。 代码以下java public V get(Object key) { Entry<K,V> e = (Entry<K,V>)getEntry(key); if (e == null) return null; e.recordAccess(th
相关文章
相关标签/搜索