org.millscript.commons.util.map
Class AbstractETreeMap<K,V,N extends ETreeMapNode<K,V>>

java.lang.Object
  extended by org.millscript.commons.util.map.AbstractIMap<K,V>
      extended by org.millscript.commons.util.map.AbstractITreeMap<K,V,N>
          extended by org.millscript.commons.util.map.AbstractUTreeMap<K,V,N>
              extended by org.millscript.commons.util.map.AbstractETreeMap<K,V,N>
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, EMap<K,V>, ETreeMap<K,V,N>, IMap<K,V>, ITreeMap<K,V,N>, UMap<K,V>
Direct Known Subclasses:
ERedBlackTreeMap

public abstract class AbstractETreeMap<K,V,N extends ETreeMapNode<K,V>>
extends AbstractUTreeMap<K,V,N>
implements EMap<K,V>, ETreeMap<K,V,N>


Nested Class Summary
 
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>
 
Constructor Summary
AbstractETreeMap()
           
AbstractETreeMap(IMapDefault<K,V> def)
           
 
Method Summary
 void insert(Maplet<? extends K,? extends V> entry)
          Inserts the specified mapping into this map, associating the maplets key with its value.
 void insertAll(IMap<? extends K,? extends V> map)
          Inserts all the mappings from the specified map into this map.
 void remove(K key, V value)
          Removes the specified key-value pair from this map.
 void remove(Maplet<? extends K,? extends V> entry)
          Removes the specified mapping from this map.
 void removeAll()
          Removes all the mappings from this map.
 void removeAll(IMap<? extends K,? extends V> map)
          Removes all the mappings in the specified map from this one.
 void removeKey(K key)
          Removes the mapping for the specified key.
 void removeValue(V value)
          Removes any mappings from this map which map to the specified value.
 
Methods inherited from class org.millscript.commons.util.map.AbstractUTreeMap
update, update, updateAll
 
Methods inherited from class org.millscript.commons.util.map.AbstractITreeMap
contains, containsKey, containsValue, get, iterator, sharedKeyList, sharedMapletList, sharedValueList, size
 
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.EMap
insert
 
Methods inherited from interface org.millscript.commons.util.UMap
update, update, updateAll
 
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
 
Methods inherited from interface org.millscript.commons.util.ETreeMap
setRootNode
 
Methods inherited from interface org.millscript.commons.util.ITreeMap
find, getComparator, getRootNode
 

Constructor Detail

AbstractETreeMap

public AbstractETreeMap()

AbstractETreeMap

public AbstractETreeMap(IMapDefault<K,V> def)
Parameters:
def -
Method Detail

insert

public void insert(Maplet<? extends K,? extends V> entry)
Description copied from interface: EMap
Inserts the specified mapping into this map, associating the maplets key with its value. The map implementation may retain a reference to the given maplet as necessary.

Specified by:
insert in interface EMap<K,V>
Parameters:
entry - the maplet to insert into this map
See Also:
EMap.insert(org.millscript.commons.util.Maplet)

insertAll

public void insertAll(IMap<? extends K,? extends V> map)
Description copied from interface: EMap
Inserts all the mappings from the specified map into this map.

Specified by:
insertAll in interface EMap<K,V>
Parameters:
map - the map to copy all mappings from
See Also:
EMap.insertAll(org.millscript.commons.util.IMap)

remove

public void remove(K key,
                   V value)
Description copied from interface: EMap
Removes the specified key-value pair from this map. For this removal to be successful the specified mapping must exist in this map.

Specified by:
remove in interface EMap<K,V>
Parameters:
key - the key to remove from this map if it is associated with the specified value
value - the value to remove from this map if it is associated with the specified key
See Also:
org.millscript.commons.util.EMap#remove(K, V)

remove

public void remove(Maplet<? extends K,? extends V> entry)
Description copied from interface: EMap
Removes the specified mapping from this map. For this removal to be successful the specified mapping must exist in this map.

Specified by:
remove in interface EMap<K,V>
Parameters:
entry - the maplet to remove from this map
See Also:
EMap.remove(org.millscript.commons.util.Maplet)

removeAll

public void removeAll()
Description copied from interface: EMap
Removes all the mappings from this map.

Specified by:
removeAll in interface EMap<K,V>
See Also:
EMap.removeAll()

removeAll

public void removeAll(IMap<? extends K,? extends V> map)
Description copied from interface: EMap
Removes all the mappings in the specified map from this one. This map will be left containing all the mappings that are not present in the specified map.

Specified by:
removeAll in interface EMap<K,V>
Parameters:
map - the map whose mappings to remove from this map
See Also:
EMap.removeAll(org.millscript.commons.util.IMap)

removeKey

public void removeKey(K key)
Description copied from interface: EMap
Removes the mapping for the specified key.

Specified by:
removeKey in interface EMap<K,V>
Parameters:
key - the key to remove from this map
See Also:
org.millscript.commons.util.EMap#removeKey(K)

removeValue

public void removeValue(V value)
Description copied from interface: EMap
Removes any mappings from this map which map to the specified value.

Specified by:
removeValue in interface EMap<K,V>
Parameters:
value - the value to remove from this map
See Also:
org.millscript.commons.util.EMap#removeValue(V)


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.