|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.collection.PartitionedMap
public class PartitionedMap
A map that wraps two other maps.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
PartitionedMap()
|
|
PartitionedMap(Map parent,
Map child)
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all mappings from this map (optional operation). |
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value. |
static Map |
create(Map parent,
Map child)
|
Set |
entrySet()
Returns a set view of the mappings contained in this map. |
Object |
get(Object key)
Returns the value to which this map maps the specified key. |
Map |
getParent()
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
Set |
keySet()
Returns a set view of the keys contained in this map. |
Object |
put(Object key,
Object value)
Associates the specified value with the specified key in this map (optional operation). |
void |
putAll(Map t)
Copies all of the mappings from the specified map to this map (optional operation). |
Object |
remove(Object key)
Removes the mapping for this key from this map if present (optional operation). |
void |
setParent(Map newParent)
|
int |
size()
Returns the number of key-value mappings in this map. |
String |
toString()
|
Collection |
values()
Returns a collection view of the values contained in this map. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public PartitionedMap()
public PartitionedMap(Map parent,
Map child)
| Method Detail |
|---|
public static Map create(Map parent,
Map child)
public void clear()
clear in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mapkey - key whose presence in this map is to be tested.
public boolean containsValue(Object value)
containsValue in interface Mapvalue - value whose presence in this map is to be tested.
public Set entrySet()
entrySet in interface Mappublic Object get(Object key)
get in interface Mapkey - key whose associated value is to be returned.
containsKey(Object)public Map getParent()
public boolean isEmpty()
isEmpty in interface Mappublic Set keySet()
keySet in interface Map
public Object put(Object key,
Object value)
put in interface Mapkey - key with which the specified value is to be associated.value - value to be associated with the specified key.
public void putAll(Map t)
putAll in interface Mapt - Mappings to be stored in this map.public Object remove(Object key)
remove in interface Mapkey - key whose mapping is to be removed from the map.
public void setParent(Map newParent)
public int size()
size in interface Mappublic String toString()
toString in class Objectpublic Collection values()
values in interface Map
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||