org.millscript.commons.util.map
Class AbstractUTreeMap<K,V,N extends UTreeMapNode<K,V>>
java.lang.Object
org.millscript.commons.util.map.AbstractIMap<K,V>
org.millscript.commons.util.map.AbstractITreeMap<K,V,N>
org.millscript.commons.util.map.AbstractUTreeMap<K,V,N>
- All Implemented Interfaces:
- org.millscript.commons.alert.AlertDecorator, IMap<K,V>, ITreeMap<K,V,N>, UMap<K,V>
- Direct Known Subclasses:
- AbstractETreeMap
public abstract class AbstractUTreeMap<K,V,N extends UTreeMapNode<K,V>>
- extends AbstractITreeMap<K,V,N>
- implements UMap<K,V>
| Nested classes/interfaces inherited from class org.millscript.commons.util.map.AbstractITreeMap |
AbstractITreeMap.ITreeMapNodeIterator<K,V>, AbstractITreeMap.ITreeMapNodeKeyIterator<K>, AbstractITreeMap.ITreeMapNodeKeyList<K>, AbstractITreeMap.ITreeMapNodeList<V>, AbstractITreeMap.ITreeMapNodeListIterator<V>, AbstractITreeMap.ITreeMapNodeMapletIterator<K,V>, AbstractITreeMap.ITreeMapNodeMapletList<K,V>, AbstractITreeMap.ITreeMapNodeValueIterator<V>, AbstractITreeMap.ITreeMapNodeValueList<V> |
|
Method Summary |
void |
update(K key,
V value)
Updates the mapping for the specified key with the specified value,
changing the previous value. |
void |
update(Maplet<? extends K,? extends V> entry)
Updates this map with the specified mapping, changing the value
associated with the maplets key to the maplets value. |
void |
updateAll(IMap<? extends K,? extends V> map)
Updates all the mappings in this map with those in the specified map. |
| Methods inherited from class org.millscript.commons.util.map.AbstractIMap |
contains, containsAll, decorate, equals, getDefault, hashCode, isEmtpy, keyList, mapletList, setDefault, toString, valueList |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.millscript.commons.util.IMap |
contains, contains, containsAll, containsKey, containsValue, equals, get, getDefault, hashCode, isEmtpy, iterator, keyList, mapletList, setDefault, size, valueList |
AbstractUTreeMap
public AbstractUTreeMap()
AbstractUTreeMap
public AbstractUTreeMap(IMapDefault<K,V> def)
- Parameters:
def -
update
public void update(K key,
V value)
- Description copied from interface:
UMap
- Updates the mapping for the specified key with the specified value,
changing the previous value.
- Specified by:
update in interface UMap<K,V>
- Parameters:
key - the key to associate the value withvalue - the value to associate the key with- See Also:
org.millscript.commons.util.UMap#update(K, V)
update
public void update(Maplet<? extends K,? extends V> entry)
- Description copied from interface:
UMap
- Updates this map with the specified mapping, changing the value
associated with the maplets key to the maplets value. The map
implementation may retain a reference to the given maplet as necessary.
This is generally equivalent to the following code, but may be more
efficient in some implementations:
someUMap.update( entry.getKey(), entry.getValue() );
- Specified by:
update in interface UMap<K,V>
- Parameters:
entry - the maplet to update this map with- See Also:
UMap.update(org.millscript.commons.util.Maplet)
updateAll
public void updateAll(IMap<? extends K,? extends V> map)
- Description copied from interface:
UMap
- Updates all the mappings in this map with those in the specified map.
- Specified by:
updateAll in interface UMap<K,V>
- Parameters:
map - the map to copy all mappings from- See Also:
UMap.updateAll(org.millscript.commons.util.IMap)
Copyright © 2005-2007 Open World Ltd. All Rights Reserved.