K - the key typeV - the value typepublic class ThreadLocalMap<K,V>
extends java.lang.ThreadLocal<java.util.Map<K,V>>
| Constructor and Description |
|---|
ThreadLocalMap() |
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key)
Gets the key of value.
|
protected java.util.Map<K,V> |
initialValue() |
ThreadLocalMap<K,V> |
put(K key,
V value)
Put value with key.
|
ThreadLocalMap<K,V> |
remove(K key)
Removes the key.
|
public ThreadLocalMap<K,V> put(K key, V value)
key - the keyvalue - the valuepublic ThreadLocalMap<K,V> remove(K key)
key - the key