|
QJCC homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.chitec.quarterback.util.HiddenDefaultValueMap
Map which returns default values of a second map if the first map has no content. All changes go to the first map. Any entry in the first map hides whatever is in the second map.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
private java.util.Map |
firstmap
|
private java.util.Map |
secondmap
|
| Constructor Summary | |
HiddenDefaultValueMap(java.util.Map firstmapx,
java.util.Map secondmapx)
Instantiates the maps which back the special purpose map. |
|
| Method Summary | |
void |
clear()
Clears only the first map. |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
Return a set of all entries in the map. |
java.lang.Object |
get(java.lang.Object key)
Returns value stored under the given key. |
boolean |
isEmpty()
Returns whether both maps are empty. |
java.util.Set |
keySet()
Return a set of all keys in the map, i.e. each key in the first and in the second map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts a value into the map, which means that it is stored in firstmap. |
void |
putAll(java.util.Map t)
Puts all given data into the first map. |
java.lang.Object |
remove(java.lang.Object key)
Removes an object from the first map. |
int |
size()
Returns the size of the combined table which is the number of all keys, excluding the duplicates. |
java.util.Collection |
values()
Returns all values in both maps as simple union. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
private java.util.Map firstmap
private java.util.Map secondmap
| Constructor Detail |
public HiddenDefaultValueMap(java.util.Map firstmapx,
java.util.Map secondmapx)
| Method Detail |
public void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Set entrySet()
ConcurrentModificationException. The returned set itself is unmodifiable.
entrySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
ConcurrentModificationException. The returned set itself is unmodifiable.
keySet in interface java.util.Map
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic void putAll(java.util.Map t)
putAll in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic int size()
size in interface java.util.Mappublic java.util.Collection values()
ConcurrentModificationException. The returned set itself is unmodifiable.
values in interface java.util.Map
|
QJCC homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||