K - A key or lookup typeV - A value typepublic class MapBackedRegistry<K,V> extends MapBackedDirectory<K,V> implements Registry<K,V>
map| Constructor and Description |
|---|
MapBackedRegistry()
Creates an empty registry instance, initialised with an empty map
|
MapBackedRegistry(Map<K,V> map)
Creates a registry instance initialise using the passed map
|
| Modifier and Type | Method and Description |
|---|---|
V |
putdateItem(K key,
V value)
{ @inheritDoc }
|
void |
putdateItems(Map<K,V> itemMap)
{ @inheritDoc }
|
V |
registerItem(K key,
V value)
{ @inheritDoc }
|
void |
registerItems(Map<K,V> itemMap)
{ @inheritDoc }
|
V |
removeItem(K key)
{ @inheritDoc }
|
void |
removeItems(Set<K> keys)
{ @inheritDoc }
|
V |
updateItem(K key,
V value)
{ @inheritDoc }
|
void |
updateItems(Map<K,V> itemMap)
{ @inheritDoc }
|
equals, getItem, getItems, getKeys, hashCode, isEmpty, sizepublic MapBackedRegistry()
public V registerItem(K key, V value)
registerItem in interface Registry<K,V>key - the lookup key for the value to addvalue - the value to addpublic void registerItems(Map<K,V> itemMap)
registerItems in interface Registry<K,V>public V removeItem(K key)
removeItem in interface Registry<K,V>key - the lookup key for the value to unregister.public void removeItems(Set<K> keys)
removeItems in interface Registry<K,V>keys - the Set of lookup keys to remove.public V putdateItem(K key, V value)
putdateItem in interface Registry<K,V>key - the lookup key of the value to putdate.value - the value to be used for the putdate.public void putdateItems(Map<K,V> itemMap)
putdateItems in interface Registry<K,V>itemMap - a Map of keys & values to add.public V updateItem(K key, V value)
updateItem in interface Registry<K,V>key - the lookup key of the value to updatevalue - the value used in the updateCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.