public class TimeoutHashMap<K,V>
extends java.util.HashMap<K,V>
Constructor and Description |
---|
TimeoutHashMap(long timeout) |
Modifier and Type | Method and Description |
---|---|
void |
beforeRemove(K key,
V value) |
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) |
long |
getTimeout() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
V |
remove(java.lang.Object key) |
void |
setTimeout(long timeout) |
int |
size() |
java.util.Collection<V> |
values() |
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public V get(java.lang.Object key)
public boolean isEmpty()
public java.util.Set<K> keySet()
public int size()
public java.util.Collection<V> values()
public V remove(java.lang.Object key)
public long getTimeout()
public void setTimeout(long timeout)