de.innovationgate.utils
public class HierarchyMap extends java.util.HashMap
Constructor and Description |
---|
HierarchyMap(java.util.Map parent)
Constructs a HierarchyMap with the given parent
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the current map (NOT the parent!)
|
boolean |
containsKey(java.lang.Object key)
Looks for the key in the current and parent map
|
boolean |
containsValue(java.lang.Object value)
Looks for the value in the current and parent map
|
java.util.Set |
entrySet()
Returns an entry set of the current and parent map
|
java.lang.Object |
get(java.lang.Object key)
Returns an entry from the current map.
|
boolean |
isEmpty()
Returns true if the current and parent map is empty.
|
java.util.Set |
keySet()
Returns a key set of the current and parent map
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds a value to the current map.
|
void |
putAll(java.util.Map m)
Adds multiple values to the current map.
|
java.lang.Object |
remove(java.lang.Object key)
Removes a value from the current map.
|
int |
size()
Size of the current and parent map together.
|
java.util.Collection |
values()
Returns a value collection of the current and parent map.
|
public HierarchyMap(java.util.Map parent)
parent
- public void clear()
clear
in interface java.util.Map
clear
in class java.util.HashMap
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
containsKey
in class java.util.HashMap
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
containsValue
in class java.util.HashMap
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in class java.util.HashMap
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class java.util.HashMap
public boolean isEmpty()
isEmpty
in interface java.util.Map
isEmpty
in class java.util.HashMap
public java.util.Set keySet()
keySet
in interface java.util.Map
keySet
in class java.util.HashMap
public int size()
size
in interface java.util.Map
size
in class java.util.HashMap
public java.util.Collection values()
values
in interface java.util.Map
values
in class java.util.HashMap
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.HashMap
public void putAll(java.util.Map m)
putAll
in interface java.util.Map
putAll
in class java.util.HashMap
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class java.util.HashMap