|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
com.timeindexing.util.CascadingMap
A cascading map is a map that holds its own map data, and also references a submap which also holds map data. A cascade of cascading maps can hold more than one version of a key in the individual maps. Any key in a map will supercede the same key in a submap. Keys will be found by traversing as many submaps as is necessary. The first one found will end the traversal.
Most of the methods of Map only work on this CascadingMap, they do not operate on submaps. Submaps appear to be read-only.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Constructor Summary | |
CascadingMap()
A constructor. |
|
CascadingMap(CascadingMap aSubMap)
A constructor which specifies a submap |
|
CascadingMap(java.util.Properties properties)
Construct a CascadingMap using a Properties object. |
Method Summary | |
boolean |
containsKey(java.lang.Object key)
Does the casacading map contain a key. |
int |
depth()
How deep is the CascadingMap. |
java.lang.Object |
get(java.lang.Object key)
Get a value from the casacading map for a key. |
CascadingMap |
getSubmap()
Get the submap from this CascadingMap. |
boolean |
hasSubmap()
Is there a submap from this CascadingMap. |
java.util.Set |
keySet()
Get all the keys in the casacading map. |
Methods inherited from class java.util.HashMap |
clear, clone, containsValue, entrySet, isEmpty, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsValue, entrySet, equals, hashCode, isEmpty, put, putAll, remove, size, values |
Constructor Detail |
public CascadingMap()
public CascadingMap(java.util.Properties properties)
public CascadingMap(CascadingMap aSubMap)
aSubMap
- an existing CascadingMap which will be a submap
to this CascadingMapMethod Detail |
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public CascadingMap getSubmap()
public boolean hasSubmap()
public int depth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |