|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.flow.TreeStructure
A tree structure class.
| Constructor Summary | |
TreeStructure()
Constructs a new tree structure instance. |
|
TreeStructure(java.util.Collection pCollection)
Constructs a new tree structure instance whose nodes are elements of the specified argument Collection. |
|
| Method Summary | |
java.util.List |
ancestorsOf(java.lang.Object pObj)
Returns the ancestor nodes of the specified argument node, including the argument node itself, in this tree structure. |
java.util.List |
childrenOf(java.lang.Object pObj)
Returns the child nodes of the specified argument node in this tree structure. |
boolean |
link(java.lang.Object pParent,
java.lang.Object pChild)
Makes a parent-child link between the given nodes. |
java.lang.Object |
parentOf(java.lang.Object pObj)
Returns the parent node of the specified argument node in this tree structure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeStructure(java.util.Collection pCollection)
Collection.
+The nodes are not linked yet.
public TreeStructure()
| Method Detail |
public java.lang.Object parentOf(java.lang.Object pObj)
public java.util.List childrenOf(java.lang.Object pObj)
public java.util.List ancestorsOf(java.lang.Object pObj)
public boolean link(java.lang.Object pParent,
java.lang.Object pChild)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||