public class PartitionedMap
extends java.lang.Object
implements java.util.Map
| Constructor and Description |
|---|
PartitionedMap() |
PartitionedMap(java.util.Map parent,
java.util.Map child) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all mappings from this map (optional operation).
|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the
specified value.
|
static java.util.Map |
create(java.util.Map parent,
java.util.Map child) |
java.util.Set |
entrySet()
Returns a set view of the mappings contained in this map.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value to which this map maps the specified key.
|
protected java.util.Map |
getChild() |
java.util.Map |
getParent() |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
java.util.Set |
keySet()
Returns a set view of the keys contained in this map.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this map
(optional operation).
|
void |
putAll(java.util.Map t)
Copies all of the mappings from the specified map to this map (optional
operation).
|
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping for this key from this map if present (optional
operation).
|
void |
setParent(java.util.Map newParent) |
int |
size()
Returns the number of key-value mappings in this map.
|
java.lang.String |
toString() |
java.util.Collection |
values()
Returns a collection view of the values contained in this map.
|
public PartitionedMap()
public PartitionedMap(java.util.Map parent,
java.util.Map child)
public static java.util.Map create(java.util.Map parent,
java.util.Map child)
public void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mapkey - key whose presence in this map is to be tested.public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mapvalue - value whose presence in this map is to be tested.public java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapkey - key whose associated value is to be returned.containsKey(Object)protected java.util.Map getChild()
public java.util.Map getParent()
public boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapkey - key with which the specified value is to be associated.value - value to be associated with the specified key.public void putAll(java.util.Map t)
putAll in interface java.util.Mapt - Mappings to be stored in this map.public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapkey - key whose mapping is to be removed from the map.public void setParent(java.util.Map newParent)
public int size()
size in interface java.util.Mappublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection values()
values in interface java.util.Map