public static class IndexMap.MapIndexMap extends IndexMap implements Map
IndexMap.ListIndexMap, IndexMap.MapIndexMap
Constructor and Description |
---|
IndexMap.MapIndexMap()
Create a new map interface index map.
|
IndexMap.MapIndexMap(List list,
Map map)
Create a new map interface index map.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone an index map.
|
Object |
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 Object 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
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 © 2012. All Rights Reserved.