Jadex 0.96-beta1

jadex.util.collection
Class IndexMap.MapIndexMap

java.lang.Object
  extended by jadex.util.collection.IndexMap
      extended by jadex.util.collection.IndexMap.MapIndexMap
All Implemented Interfaces:
Serializable, Cloneable, Map
Enclosing class:
IndexMap

public static class IndexMap.MapIndexMap
extends IndexMap
implements Map

Provide access to the index map via map interface.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.util.collection.IndexMap
IndexMap.ListIndexMap, IndexMap.MapIndexMap
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry
 
Constructor Summary
IndexMap.MapIndexMap()
          Create a new map interface index map.
IndexMap.MapIndexMap(List list, Map map)
          Create a new map interface index map.
 
Method Summary
 Object clone()
          Clone an index map.
 Object remove(Object key)
          Removes the mapping for this key from this map if it is present.
 
Methods inherited from class jadex.util.collection.IndexMap
add, add, add, add, addAll, addAll, clear, contains, containsAll, containsKey, containsValue, entrySet, equals, get, get, getAsList, getAsMap, getKey, getKeys, getKeys, getObjects, getObjects, hashCode, indexOf, isEmpty, iterator, keySet, lastIndexOf, listIterator, listIterator, put, putAll, remove, removeAll, removeKey, removeValue, replace, retainAll, set, size, subList, toArray, toArray, toString, values
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, size, values
 

Constructor Detail

IndexMap.MapIndexMap

public IndexMap.MapIndexMap()
Create a new map interface index map.


IndexMap.MapIndexMap

public IndexMap.MapIndexMap(List list,
                            Map map)
Create a new map interface index map.

Parameters:
list - The list.
map - The map.
Method Detail

remove

public Object remove(Object key)
Removes the mapping for this key from this map if it is present. More formally, if this map contains a mapping from key k to value v such that (key==null ? k==null : key.equals(k)), that mapping is removed. (The map can contain at most one such mapping.)

Returns the value to which the map previously associated the key, or null if the map contained no mapping for this key. (A null return can also indicate that the map previously associated null with the specified key if the implementation supports null values.) The map will not contain a mapping for the specified key once the call returns.

Specified by:
remove in interface Map
Parameters:
key - key whose mapping is to be removed from the map.
Returns:
previous value associated with specified key, or null if there was no mapping for key.
Throws:
ClassCastException - if the key is of an inappropriate type for this map (optional).
NullPointerException - if the key is null and this map does not not permit null keys (optional).

clone

public Object clone()
Clone an index map.

Overrides:
clone in class IndexMap

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.