public class ThreadLocalMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
| Constructor and Description |
|---|
ThreadLocalMap() |
ThreadLocalMap(java.util.Map<K,V> prototype) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all mappings from the map used by the current thread.
|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key in the
current thread.
|
boolean |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the specified value in
the current thread.
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
Returns a set view of the mappings contained in this map in the current
thread.
|
boolean |
equals(java.lang.Object o)
Compares the specified object with this map for equality.
|
V |
get(java.lang.Object key)
Returns the value to which this map maps the specified key in the current
thread.
|
int |
hashCode()
Returns the hash code value for this map.
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings in the current
thread.
|
java.util.Set<K> |
keySet()
Returns a set view of the keys contained in this map.
|
V |
put(K key,
V value)
Associates the specified value with the specified key in this map in the
current thread.
|
void |
putAll(java.util.Map<? extends K,? extends V> t)
Copies all of the mappings from the specified map to this map in the
current thread.
|
V |
remove(java.lang.Object key)
Removes the mapping for this key from this map if present in the current
thread.
|
int |
size()
Returns the number of key-value mappings in this map in the current
thread.
|
java.lang.String |
toString()
Returns a string representation of the map.
|
java.util.Collection<V> |
values()
Returns a collection view of the values contained in this map in the
current thread.
|
public void clear()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
public boolean equals(java.lang.Object o)
public V get(java.lang.Object key)
public int hashCode()
public boolean isEmpty()
public java.util.Set<K> keySet()
public V put(K key, V value)
public void putAll(java.util.Map<? extends K,? extends V> t)
public V remove(java.lang.Object key)
public int size()
public java.util.Collection<V> values()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? Technia AB. All Rights Reserved.