public final class ThreadSafeMap<TKey,TValue>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadSafeMap.Type
The enum Type.
|
| Constructor and Description |
|---|
ThreadSafeMap()
Instantiates a new Thread safe map.
|
ThreadSafeMap(ThreadSafeMap.Type type)
Instantiates a new Thread safe map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
TValue |
get(TKey key)
Get value.
|
ThreadSafeMap.Type |
getType()
Gets type.
|
TValue |
put(TKey key,
TValue value)
Put value by key.
|
void |
setType(ThreadSafeMap.Type type)
Sets type.
|
public ThreadSafeMap()
public ThreadSafeMap(ThreadSafeMap.Type type)
type - the typepublic void clear()
public ThreadSafeMap.Type getType()
public TValue put(TKey key, TValue value)
key - the keyvalue - the valuepublic void setType(ThreadSafeMap.Type type)
type - the type