K
- the type of the keys in the mapV
- the type of the values in the mappublic static interface CompositeMap.MapMutator<K,V>
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
V |
put(CompositeMap<K,V> map,
java.util.Map<K,V>[] composited,
K key,
V value)
Called when the CompositeMap.put() method is invoked.
|
void |
putAll(CompositeMap<K,V> map,
java.util.Map<K,V>[] composited,
java.util.Map<? extends K,? extends V> mapToAdd)
Called when the CompositeMap.putAll() method is invoked.
|
void |
resolveCollision(CompositeMap<K,V> composite,
java.util.Map<K,V> existing,
java.util.Map<K,V> added,
java.util.Collection<K> intersect)
Called when adding a new Composited Map results in a
key collision.
|
void resolveCollision(CompositeMap<K,V> composite, java.util.Map<K,V> existing, java.util.Map<K,V> added, java.util.Collection<K> intersect)
composite
- the CompositeMap with the collisionexisting
- the Map already in the composite which contains the
offending keyadded
- the Map being addedintersect
- the intersection of the keysets of the existing and added mapsV put(CompositeMap<K,V> map, java.util.Map<K,V>[] composited, K key, V value)
map
- the CompositeMap which is being modifiedcomposited
- array of Maps in the CompositeMap being modifiedkey
- key with which the specified value is to be associated.value
- value to be associated with the specified key.null
if there was no mapping for key. A null
return can
also indicate that the map previously associated null
with the specified key, if the implementation supports
null
values.java.lang.UnsupportedOperationException
- if not definedjava.lang.ClassCastException
- if the class of the specified key or value
prevents it from being stored in this map.java.lang.IllegalArgumentException
- if some aspect of this key or value
prevents it from being stored in this map.java.lang.NullPointerException
- this map does not permit null
keys or values, and the specified key or value is
null
.void putAll(CompositeMap<K,V> map, java.util.Map<K,V>[] composited, java.util.Map<? extends K,? extends V> mapToAdd)
map
- the CompositeMap which is being modifiedcomposited
- array of Maps in the CompositeMap being modifiedmapToAdd
- Mappings to be stored in this CompositeMapjava.lang.UnsupportedOperationException
- if not definedjava.lang.ClassCastException
- if the class of the specified key or value
prevents it from being stored in this map.java.lang.IllegalArgumentException
- if some aspect of this key or value
prevents it from being stored in this map.java.lang.NullPointerException
- this map does not permit null
keys or values, and the specified key or value is
null
.Copyright © 2010 - 2020 Adobe. All Rights Reserved