Package | Description |
---|---|
fc.util |
Modifier and Type | Method and Description |
---|---|
Tree.Node |
Tree.createRootNode(Object data)
Creates and returns the root node for this tree.
|
Tree.Node |
Tree.Node.getChildContaining(Object obj)
Returns the first child node whose data object equals the specified
argument.
|
Tree.Node |
Tree.Node.getParent()
Returns the parent of the TreeNode, null if there is no parent
|
Tree.Node |
Tree.getRootNode()
Returns the root node of this tree.
|
Modifier and Type | Method and Description |
---|---|
void |
Tree.Node.add(Tree.Node child)
Adds the specified node as a new child node to this node.
|
boolean |
Tree.Node.containsChild(Tree.Node child)
Returns true if this node contains the specified element.
|
boolean |
Tree.Node.isNodeAncestor(Tree.Node ancestor)
Returns true if the specified node is an ancestor of this node
false otherwise.
|
boolean |
Tree.Node.isNodeChild(Tree.Node child)
Returns true if the specified node is a child of this node
false otherwise.
|
boolean |
Tree.Node.isNodeDescendant(Tree.Node descendent)
Returns true if the specified node is a descendent of this node
false otherwise.
|
boolean |
Tree.Node.isNodeSibling(Tree.Node node)
Returns true if the specified node is a sibling of this node
false otherwise.
|
abstract Iterator |
Tree.IterationOrder.iterator(Tree.Node startnode) |
boolean |
Tree.Node.remove(Tree.Node child)
Removes a single instance of the specified element from this node's children,
if it is present.
|
boolean |
Tree.Node.valEquals(Tree.Node one,
Tree.Node other)
Compares the values of 2 nodes.
|
Constructor and Description |
---|
Node(Tree.Node parent,
Object data)
Creates a new Node and adds it as a child of the specified Node
|