|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface extends HierarchicalMap Interface. The main difference is that this version accepts key composed by Object array. Each element in the array represents a level, or depth, in the hierarchy. The single Object in key behaves as an array with one element. There is a special treatment for String key. It splits the key using String.split() to generate Object array.
HierarchicalMap
Nested Class Summary |
Nested classes inherited from class org.dhmp.util.HierarchicalMap |
HierarchicalMap.EntrySet |
Field Summary |
Fields inherited from interface org.dhmp.util.HierarchicalMap |
DEFAULT_PATH_SEPARATOR |
Method Summary | |
HierarchicalMap |
add(java.lang.Object[] key)
Associates a new HierarchicalMap with the specified key in this map. |
java.lang.Object |
add(java.lang.Object[] key,
java.lang.Object value)
Associates the specified value with the specified key in this map. |
java.lang.Object |
addAll(java.lang.Object[] key,
java.util.Collection values)
Associates all the values contained in the specified collection with the specified key in this map. |
java.util.Collection |
addAll(java.lang.Object[] key,
HierarchicalMap hmap)
Associates all the values contained in the specified hierarchicalmap with the specified key in this map. |
java.lang.Object |
get(java.lang.Object[] key)
Returns the value in this map associated to the specified key. |
java.util.Collection |
getAll(java.lang.Object[] key)
Returns collection containing all the value in this map associated to the specified key. |
java.lang.Object |
put(java.lang.Object[] key,
java.lang.Object value)
Associates the specified value with the specified key in this map. |
java.lang.Object |
remove(java.lang.Object[] key)
Removes the mapping for this key from this map if it is present. |
java.util.Collection |
removeAll(java.lang.Object[] key)
Removes the mapping for this key from this map if it is present. |
Methods inherited from interface org.dhmp.util.HierarchicalMap |
add, add, addAll, addAll, addAll, clone, entrySet, get, get, getAll, getPathSeparator, keySet, newInstance, put, remove, removeAll, setPathSeparator, size, values |
Method Detail |
public java.lang.Object get(java.lang.Object[] key)
key
- key array whose associated value is to be returned.
HierarchicalMap.get(Object key)
public java.util.Collection getAll(java.lang.Object[] key)
key
- key array whose associated value is to be returned.
HierarchicalMap.getAll(Object key)
public java.lang.Object put(java.lang.Object[] key, java.lang.Object value)
key
- key array which the specified value is to be associated.value
- value to be associated with the specified key.
HierarchicalMap.put(Object key, Object value)
public java.lang.Object add(java.lang.Object[] key, java.lang.Object value)
key
- key array which the specified value is to be associated.value
- value to be associated with the specified key.
HierarchicalMap.add(Object key, Object value)
public HierarchicalMap add(java.lang.Object[] key)
key
- key array which a new HierarchicalMap is to be associated.
HierarchicalMap.add(Object key)
public java.lang.Object addAll(java.lang.Object[] key, java.util.Collection values)
key
- key array which the specified values is to be associated.values
- a collection containing the values to be associated with the specified key.
HierarchicalMap.addAll(Object key, Collection values)
public java.util.Collection addAll(java.lang.Object[] key, HierarchicalMap hmap)
key
- key array which the specified values is to be associated.hmap
- a HierarchicalMap containing the values to be associated with the specified key.
HierarchicalMap.addAll(Object key, HierarchicalMap hmap)
public java.lang.Object remove(java.lang.Object[] key)
key
- key array which mapping is to be removed from the map.
HierarchicalMap.remove(Object key)
public java.util.Collection removeAll(java.lang.Object[] key)
key
- key array which mapping is to be removed from the map.
HierarchicalMap.removeAll(Object key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |