K - V - public class SyncHashMap<K,V> extends Object
getMap() without locking getReadLock() or getWriteLock()
according to the operation you want to perform.| Constructor and Description |
|---|
SyncHashMap() |
| Modifier and Type | Method and Description |
|---|---|
V |
get(Object key) |
Map<K,V> |
getMap()
Use with care ... you need to synchronize read/writes via
getReadLock() and getWriteLock(). |
Lock |
getReadLock()
Returns READ LOCK.
|
Lock |
getWriteLock()
Returns WRITE LOCK.
|
V |
put(K key,
V value) |
V |
remove(K key) |
int |
size() |
public int size()
public Map<K,V> getMap()
getReadLock() and getWriteLock().public Lock getReadLock()
public Lock getWriteLock()
Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.