DerivedNode
- The instance type which is the implementor of this.Data
- The data type which are referred with a that tree node.public interface TreeNode_ifc<DerivedNode extends TreeNode_ifc<DerivedNode,Data>,Data>
TreeNodeBase
class.
This interface can be used as super interface of an interface of such instances.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version
Version, history and license.
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(DerivedNode childNode) |
DerivedNode |
addNode(java.lang.String itsKey,
Data leaf) |
void |
addNodeFirst(DerivedNode childNode) |
void |
addSiblingNext(DerivedNode childNode) |
void |
detach() |
DerivedNode |
firstChild() |
java.lang.String |
getKey() |
DerivedNode |
getNode(java.lang.String path,
java.lang.String separator) |
DerivedNode |
getOrCreateNode(java.lang.String path,
java.lang.String separator) |
Data |
getParentData() |
boolean |
hasChildren() |
IterableIterator<DerivedNode> |
iteratorChildren()
Returns an iterator through the list of all children of the node.
|
IterableIterator<DerivedNode> |
iteratorChildren(java.lang.String keyP) |
DerivedNode |
lastChild() |
DerivedNode |
nextSibling() |
int |
nrofChildren() |
DerivedNode |
parent() |
boolean |
parentEquals(TreeNode_ifc<DerivedNode,Data> cmpr)
Checks whether the parent is a known node.
|
DerivedNode |
prevSibling() |
void |
removeChildren() |
static final java.lang.String version
iteratorChildren()
for all children in given order
TreeNodeBase
was existing already.
The reason for this interface:
DerivedNode addNode(java.lang.String itsKey, Data leaf)
void addNode(DerivedNode childNode)
void addNodeFirst(DerivedNode childNode)
void addSiblingNext(DerivedNode childNode)
void detach()
void removeChildren()
java.lang.String getKey()
Data getParentData()
DerivedNode getNode(java.lang.String path, java.lang.String separator)
DerivedNode getOrCreateNode(java.lang.String path, java.lang.String separator)
DerivedNode parent()
boolean parentEquals(TreeNode_ifc<DerivedNode,Data> cmpr)
cmpr
- The node to compare withDerivedNode nextSibling()
DerivedNode prevSibling()
boolean hasChildren()
int nrofChildren()
DerivedNode firstChild()
DerivedNode lastChild()
IterableIterator<DerivedNode> iteratorChildren(java.lang.String keyP)
IterableIterator<DerivedNode> iteratorChildren()