Some implementations may not support null keys and/or values, in which case they will throw
NullPointerException for attempts to add such keys/values.
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Redeclares java.
Deprecated
Removes all of the mappings from this map (optional operation). |
| public PMap | |
| public PMap | Returns: a map with the mappings of this but with no value for any element of keys
|
| public PMap | |
| public PMap | |
| public V | put(K
key with which the specified value is to be associated k, V value to be associated with the specified key v)Redeclares java.
Deprecated
Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map m)Redeclares java.
Deprecated
Copies all of the mappings from the specified map to this map (optional operation). |
| public V | remove(Object
key whose mapping is to be removed from the map k)Redeclares java.
Deprecated
Removes the mapping for a key from this map if it is present (optional operation). |
| clear | back to summary |
|---|---|
| public void clear() Redeclares java. Doc from java. Deprecated
Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| minus | back to summary |
|---|---|
public PMap
| |
| minusAll | back to summary |
|---|---|
public PMap
| |
| plus | back to summary |
|---|---|
public PMap
| |
| plusAll | back to summary |
|---|---|
public PMap
| |
| put | back to summary |
|---|---|
| public V put(K k, V v) Redeclares java. Doc from java. Deprecated
Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> m) Redeclares java. Doc from java. Deprecated
Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling
| |
| remove | back to summary |
|---|---|
| public V remove(Object k) Redeclares java. Doc from java. Deprecated
Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |