| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRegistry() |
protected |
AbstractRegistry(Map<KEY,VALUE> map,
RegistryMap.DuplicateAction duplicateAction) |
protected |
AbstractRegistry(RegistryMap.DuplicateAction duplicateAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all registry entries.
|
boolean |
contains(KEY key)
Returns true if the registry contains the specified item.
|
VALUE |
get(KEY key)
Returns the value associated with the specified key.
|
Collection<VALUE> |
getAll()
Returns a read-only collection of all registry entries.
|
protected abstract KEY |
getKey(VALUE item)
Returns the key to use to store the item.
|
Iterator<VALUE> |
iterator()
Iterate over value set.
|
void |
register(VALUE item)
Adds an item to the registry.
|
int |
size()
Return number of entries.
|
VALUE |
unregister(VALUE item)
Removes an item from the registry.
|
VALUE |
unregisterByKey(KEY key)
Removes an item from the registry using its key value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected AbstractRegistry()
protected AbstractRegistry(RegistryMap.DuplicateAction duplicateAction)
protected AbstractRegistry(Map<KEY,VALUE> map, RegistryMap.DuplicateAction duplicateAction)
protected abstract KEY getKey(VALUE item)
item - Item whose key is sought.public VALUE get(KEY key)
key - Key whose associated value is sought.public boolean contains(KEY key)
key - Key of item.public Collection<VALUE> getAll()
public void register(VALUE item)
item - Item to add.public VALUE unregister(VALUE item)
item - The item to remove.public VALUE unregisterByKey(KEY key)
key - The key of the item to remove.public void clear()
public int size()
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.