public static class IndexMap.MapIndexMap<K,V> extends IndexMap<K,V> implements Map<K,V>
IndexMap.ListIndexMap<K,V>, IndexMap.MapIndexMap<K,V>
Constructor and Description |
---|
IndexMap.MapIndexMap()
Create a new map interface index map.
|
IndexMap.MapIndexMap(List<K> list,
Map<K,V> map)
Create a new map interface index map.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone an index map.
|
V |
remove(Object key)
Removes the mapping for this key from this map if it is present.
|
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
public IndexMap.MapIndexMap()
public V remove(Object key)
(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.
remove
in interface Map<K,V>
key
- key whose mapping is to be removed from the map.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).Copyright © 2013. All Rights Reserved.