|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.data.impl.NamedTree
public class NamedTree
A named tree implementation. This is NOT indexed and thus should not be used in anything needing speed. However, the tree can be trimmed, pruned, spliced, and diced at your whim and whenever. It assumes that the values are immutable!
Version History
EPG - Initial - 6 SEP 02
Constructor Summary | |
---|---|
NamedTree()
CONSTRUCTOR |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String path)
Get the value at the path |
NamedTree |
mirror(java.lang.String path)
Mirror the tree to a new tree |
void |
remove(java.lang.String path)
It will remove everything at and beyond the named path. |
boolean |
set(java.lang.String path,
java.lang.Object value)
Set the value of a path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedTree()
Method Detail |
---|
public boolean set(java.lang.String path, java.lang.Object value)
path
- in dot notation (level1.level2.terminal)value
- as an Object
public void remove(java.lang.String path)
path
- in dot notation (level1.level2.terminal)public java.lang.Object get(java.lang.String path)
path
- in dot notation (level1.level2.terminal)
public NamedTree mirror(java.lang.String path)
path
- root in dot notation (level1.level2.terminal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |