K
- the type of the keys in the mappingV
- the type of the values in the mappingpublic class LRUMap<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LRUMap() |
LRUMap(int maxSize) |
LRUMap(int maxSize,
int initialCapacity) |
LRUMap(int maxSize,
int initialCapacity,
float loadFactor) |
LRUMap(Map<? extends K,? extends V> m) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxSize() |
protected boolean |
removeEldestEntry(Map.Entry<K,V> entry) |
void |
setMaxSize(int i) |
clear, containsValue, get
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public LRUMap()
public LRUMap(int maxSize)
public LRUMap(int maxSize, int initialCapacity)
public LRUMap(int maxSize, int initialCapacity, float loadFactor)
protected boolean removeEldestEntry(Map.Entry<K,V> entry)
removeEldestEntry
in class LinkedHashMap<K,V>
public int getMaxSize()
public void setMaxSize(int i)
Copyright © 2001-2013 Aduna. All Rights Reserved.