Package jadex.commons.collection
Class IndexMap.MapIndexMap<K,V>
- java.lang.Object
-
- jadex.commons.collection.IndexMap<K,V>
-
- jadex.commons.collection.IndexMap.MapIndexMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,V>
public static class IndexMap.MapIndexMap<K,V> extends IndexMap<K,V> implements java.util.Map<K,V>
Provide access to the index map via map interface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.commons.collection.IndexMap
IndexMap.ListIndexMap<K,V>, IndexMap.MapIndexMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description MapIndexMap()
Create a new map interface index map.MapIndexMap(java.util.List<K> list, java.util.Map<K,V> map)
Create a new map interface index map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Clone an index map.V
remove(java.lang.Object key)
Removes the mapping for this key from this map if it is present.-
Methods inherited from class jadex.commons.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
-
-
-
-
Method Detail
-
remove
public V remove(java.lang.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 (key==null ? k==null : key.equals(k)), that mapping is removed. (The map can contain at most one such mapping.)- Specified by:
remove
in interfacejava.util.Map<K,V>
- Parameters:
key
- key whose mapping is to be removed from the map.- Returns:
- previous value associated with specified key, or
- Throws:
java.lang.ClassCastException
- if the key is of an inappropriate type for this map (optional).java.lang.NullPointerException
- if the key is
-
-