Package net.handle.util
Class LRUCacheTable<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- net.handle.util.LRUCacheTable<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class LRUCacheTable<K,V> extends java.util.AbstractMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description LRUCacheTable(int maxsize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
int
getMaxSize()
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V val)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
remove(java.lang.Object key)
void
setMaxSize(int newsize)
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
size
public int size()
-
getMaxSize
public int getMaxSize()
-
setMaxSize
public void setMaxSize(int newsize)
-
remove
public V remove(java.lang.Object key)
-
clear
public void clear()
-
get
public V get(java.lang.Object key)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<K> keySet()
-
-