K - type of the keyV - type of the parameterpublic final class LRUMap<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SIZE
DEFAULT_SIZE
|
| Constructor and Description |
|---|
LRUMap()
default constructor
|
LRUMap(int _maxSize)
constructor
|
LRUMap(String sMaxSize)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
clear, containsValue, getclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static final int DEFAULT_SIZE
public LRUMap()
public LRUMap(String sMaxSize)
sMaxSize - public LRUMap(int _maxSize)
_maxSize - protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
removeEldestEntry in class LinkedHashMap<K,V>Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow