K
- the type of keys maintained by this mapV
- the type of mapped valuesinfo.magnolia.config.registry.RegistryMap
; please consider implementing info.magnolia.config.registry.Registry
instead.@Deprecated public class RegistryMap<K,V> extends Object
removeAndPutAll
that is
used to remove a set of previously added values before adding a collection of new ones. Read operations are blocked
until it completes guaranteeing proper visibility.
It is common for entities in registries to also hold their identifier. The method keyFormValue
can be
overridden to get the identifier from the value. This removes the need to package a set of entities that should be
added in a Map before calling removeAndPutAll(java.util.Collection, java.util.Map)
.Constructor and Description |
---|
RegistryMap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
V |
get(K key)
Deprecated.
|
V |
getRequired(K key)
Deprecated.
|
protected K |
keyFromValue(V value)
Deprecated.
|
Collection<K> |
keySet()
Deprecated.
|
void |
put(K key,
V value)
Deprecated.
|
void |
put(V value)
Deprecated.
|
void |
remove(K key)
Deprecated.
|
Set<K> |
removeAndPutAll(Collection<K> toRemove,
Collection<V> toPut)
Deprecated.
|
void |
removeAndPutAll(Collection<K> toRemove,
Map<K,V> toPut)
Deprecated.
|
Collection<V> |
values()
Deprecated.
|
public V getRequired(K key) throws RegistrationException
RegistrationException
public void put(V value)
public void remove(K key)
public void removeAndPutAll(Collection<K> toRemove, Map<K,V> toPut)
public Set<K> removeAndPutAll(Collection<K> toRemove, Collection<V> toPut)
public Collection<K> keySet()
public Collection<V> values()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.