org.millscript.commons.util.map
Class AbstractEMap<K,V>

java.lang.Object
  extended by org.millscript.commons.util.map.AbstractIMap<K,V>
      extended by org.millscript.commons.util.map.AbstractUMap<K,V>
          extended by org.millscript.commons.util.map.AbstractEMap<K,V>
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, EMap<K,V>, IMap<K,V>, UMap<K,V>
Direct Known Subclasses:
AbstractEReferenceHashMap, EArrayMap, EBinaryTreeMap, EHashMap, ELinkedHashMap

public abstract class AbstractEMap<K,V>
extends AbstractUMap<K,V>
implements EMap<K,V>


Constructor Summary
AbstractEMap()
           
 
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(Maplet<? extends K,? extends V> entry)
          Removes the specified mapping from this map.
 void removeAll(IMap<? extends K,? extends V> map)
          Removes all the mappings in the specified map from this one.
 
Methods inherited from class org.millscript.commons.util.map.AbstractUMap
update, updateAll
 
Methods inherited from class org.millscript.commons.util.map.AbstractIMap
contains, containsAll, decorate, equals, getDefault, hashCode, isEmtpy, keyList, mapletList, setDefault, sharedKeyList, sharedMapletList, sharedValueList, 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, remove, removeAll, removeKey, removeValue
 
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
 

Constructor Detail

AbstractEMap

public AbstractEMap()
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(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(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)


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