| Modifier and Type | Class and Description |
|---|---|
static class |
RegistryMap.DuplicateAction |
| Constructor and Description |
|---|
RegistryMap()
Defaults to concurrent hash map and replaceable keys.
|
RegistryMap(Map<KEY,VALUE> map)
Wraps the specified map, allowing replaceable keys.
|
RegistryMap(Map<KEY,VALUE> map,
RegistryMap.DuplicateAction duplicateAction) |
RegistryMap(RegistryMap.DuplicateAction duplicateAction)
Uses concurrent hash map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<KEY,VALUE>> |
entrySet() |
VALUE |
get(Object key) |
boolean |
isEmpty() |
Set<KEY> |
keySet() |
VALUE |
put(KEY key,
VALUE value) |
void |
putAll(Map<? extends KEY,? extends VALUE> m) |
VALUE |
remove(Object key) |
int |
size() |
Collection<VALUE> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic RegistryMap()
public RegistryMap(Map<KEY,VALUE> map)
map - Map to be wrapped. If null, a concurrent hash map is created and used.public RegistryMap(RegistryMap.DuplicateAction duplicateAction)
duplicateAction - Behavior on attempt to replace existing key.public RegistryMap(Map<KEY,VALUE> map, RegistryMap.DuplicateAction duplicateAction)
map - Map to be wrapped. If null, a concurrent hash map is created and used.duplicateAction - Behavior on attempt to replace existing key.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.