public static interface CompositeMap.MapMutator
Modifier and Type | Method and Description |
---|---|
Object |
put(CompositeMap map,
Map[] composited,
Object key,
Object value)
Called when the CompositeMap.put() method is invoked.
|
void |
putAll(CompositeMap map,
Map[] composited,
Map mapToAdd)
Called when the CompositeMap.putAll() method is invoked.
|
void |
resolveCollision(CompositeMap composite,
Map existing,
Map added,
Collection intersect)
Called when adding a new Composited Map results in a
key collision.
|
void resolveCollision(CompositeMap composite, Map existing, Map added, Collection 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 mapsObject put(CompositeMap map, Map[] composited, Object key, Object 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.UnsupportedOperationException
- if not definedClassCastException
- if the class of the specified key or value
prevents it from being stored in this map.IllegalArgumentException
- if some aspect of this key or value
prevents it from being stored in this map.NullPointerException
- this map does not permit null
keys or values, and the specified key or value is
null.void putAll(CompositeMap map, Map[] composited, Map mapToAdd)
map
- the CompositeMap which is being modifiedcomposited
- array of Maps in the CompositeMap being modifiedmapToAdd
- Mappings to be stored in this CompositeMapUnsupportedOperationException
- if not definedClassCastException
- if the class of the specified key or value
prevents it from being stored in this map.IllegalArgumentException
- if some aspect of this key or value
prevents it from being stored in this map.NullPointerException
- this map does not permit null
keys or values, and the specified key or value is
null.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.