Package org.arakhne.afc.math.tree.node
Class ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>
- java.lang.Object
-
- org.arakhne.afc.math.tree.node.AbstractParentlessTreeNode<D,N>
-
- org.arakhne.afc.math.tree.node.AbstractTreeNode<D,N>
-
- org.arakhne.afc.math.tree.node.ConstantNaryTreeNode<D,ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>>
-
- org.arakhne.afc.math.tree.node.ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>
-
- Type Parameters:
D
- is the type of the data inside the tree
- All Implemented Interfaces:
Serializable
,Comparable<ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>>
,IterableNode<ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>>
,TreeNode<D,ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>>
,JsonableObject
- Enclosing class:
- ConstantNaryTreeNode<D,N extends ConstantNaryTreeNode<D,N>>
public static class ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D> extends ConstantNaryTreeNode<D,ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>>
This is the generic implementation of a n-ary tree.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:41
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathtree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.arakhne.afc.math.tree.node.ConstantNaryTreeNode
ConstantNaryTreeNode.DefaultConstantNaryTreeNode<D>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.tree.node.AbstractParentlessTreeNode
DEFAULT_COPY_USER_DATA, DEFAULT_LINK_LIST_USE, nodeListeners, notNullChildCount
-
-
Constructor Summary
Constructors Constructor Description DefaultConstantNaryTreeNode(int childCount)
Empty node.DefaultConstantNaryTreeNode(int childCount, D data)
Construct node.DefaultConstantNaryTreeNode(int childCount, Collection<D> data)
Construct node.
-
Method Summary
-
Methods inherited from class org.arakhne.afc.math.tree.node.ConstantNaryTreeNode
clear, getChildAt, getChildCount, getChildren, getHeights, getMaxHeight, getMinHeight, getNotNullChildCount, getPartitionEnumeration, indexOf, isLeaf, moveTo, removeChild, setChildAt, setChildAtWithoutEventFiring
-
Methods inherited from class org.arakhne.afc.math.tree.node.AbstractTreeNode
children, firePropertyChildAdded, firePropertyChildAdded, firePropertyChildRemoved, firePropertyChildRemoved, firePropertyParentChanged, firePropertyParentChanged, firePropertyParentChanged, getChildren, getDepth, getParentNode, isRoot, moveTo, removeDeeplyFromParent, removeFromParent, setParentNodeReference
-
Methods inherited from class org.arakhne.afc.math.tree.node.AbstractParentlessTreeNode
addTreeNodeListener, addUserData, addUserData, addUserData, addUserData, compareTo, firePropertyDataChanged, firePropertyDataChanged, firePropertyDataChanged, getAllUserData, getAllUserData, getDeepNodeCount, getDeepUserDataCount, getHeights, getInternalDataStructureForUserData, getUserData, getUserDataAt, getUserDataCount, isEmpty, isValid, removeAllUserData, removeTreeNodeListener, removeUserData, removeUserData, removeUserData, setUserData, setUserData, setUserDataAt, toJson, toN, toString
-
-
-
-
Constructor Detail
-
DefaultConstantNaryTreeNode
public DefaultConstantNaryTreeNode(int childCount)
Empty node.- Parameters:
childCount
- is the constant count of child
-
DefaultConstantNaryTreeNode
public DefaultConstantNaryTreeNode(int childCount, Collection<D> data)
Construct node.- Parameters:
childCount
- is the constant count of childdata
- are the initial user data
-
DefaultConstantNaryTreeNode
public DefaultConstantNaryTreeNode(int childCount, D data)
Construct node.- Parameters:
childCount
- is the constant count of childdata
- are the initial user data
-
-