private static class ComparableARC.LimitedTreeMap<K,V>
extends java.util.TreeMap<K,V>
Modifier and Type | Field and Description |
---|---|
(package private) java.util.LinkedList<K> |
keys |
(package private) int |
limit |
private static long |
serialVersionUID |
Constructor and Description |
---|
ComparableARC.LimitedTreeMap(int cacheSize,
java.util.Comparator<? super K> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
V |
get(java.lang.Object k) |
java.util.Map.Entry<K,V> |
pollFirstEntry() |
java.util.Map.Entry<K,V> |
pollLastEntry() |
V |
put(K k,
V v) |
void |
putAll(java.util.Map<? extends K,? extends V> map) |
V |
remove(java.lang.Object k) |
private boolean |
removeFromKeys(K k) |
ceilingEntry, ceilingKey, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, size, subMap, subMap, tailMap, tailMap, values
private static final long serialVersionUID
int limit
java.util.LinkedList<K> keys
public ComparableARC.LimitedTreeMap(int cacheSize, java.util.Comparator<? super K> comparator)
public V get(java.lang.Object k)
public V remove(java.lang.Object k)
public void clear()
private boolean removeFromKeys(K k)