Constructor and Description |
---|
AtomicDictionary() |
AtomicDictionary(Comparator<String> comparer) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
T |
get(String key) |
T |
getOrAdd(String key,
Function1<String,T> valueGenerator) |
List<Map.Entry<String,T>> |
getSnapshot() |
Iterator<Map.Entry<String,T>> |
iterator() |
void |
remove(String key) |
Collection<T> |
values() |
CleanCloseable |
withAllLocks() |
Object |
withLockFor(String key)
Usage: synchronized (withLockFor(key))
|
public AtomicDictionary(Comparator<String> comparer)
public AtomicDictionary()
public Collection<T> values()
public Object withLockFor(String key)
key
- public void remove(String key)
public void clear()
public CleanCloseable withAllLocks()
Copyright © 2016. All Rights Reserved.