DataType
- The type of the data in the cluster.ClusterType
- The type of cluster contained in the hierarchy node.public class DefaultClusterHierarchyNode<DataType,ClusterType extends Cluster<DataType>> extends AbstractClusterHierarchyNode<DataType,ClusterType>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ClusterHierarchyNode<DataType,ClusterType>> |
children
The list of children.
|
cluster
Constructor and Description |
---|
DefaultClusterHierarchyNode()
Creates a new
DefaultClusterHierarchyNode . |
DefaultClusterHierarchyNode(ClusterType cluster)
Creates a new
DefaultClusterHierarchyNode . |
DefaultClusterHierarchyNode(ClusterType cluster,
ClusterHierarchyNode<DataType,ClusterType> firstChild,
ClusterHierarchyNode<DataType,ClusterType> secondChild)
Creates a new
DefaultClusterHierarchyNode . |
DefaultClusterHierarchyNode(ClusterType cluster,
java.util.List<ClusterHierarchyNode<DataType,ClusterType>> children)
Creates a new
DefaultClusterHierarchyNode . |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClusterHierarchyNode<DataType,ClusterType>> |
getChildren()
Gets the children of this node.
|
void |
setChildren(ClusterHierarchyNode<DataType,ClusterType> firstChild,
ClusterHierarchyNode<DataType,ClusterType> secondChild)
Sets the children of this node.
|
void |
setChildren(java.util.List<ClusterHierarchyNode<DataType,ClusterType>> children)
Sets the children of this node.
|
getCluster, getMembers, hasChildren, setCluster
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected java.util.List<ClusterHierarchyNode<DataType,ClusterType extends Cluster<DataType>>> children
public DefaultClusterHierarchyNode()
DefaultClusterHierarchyNode
.public DefaultClusterHierarchyNode(ClusterType cluster)
DefaultClusterHierarchyNode
.cluster
- The cluster associated with this node.public DefaultClusterHierarchyNode(ClusterType cluster, java.util.List<ClusterHierarchyNode<DataType,ClusterType>> children)
DefaultClusterHierarchyNode
.cluster
- The cluster associated with this node.children
- The children of this node.public DefaultClusterHierarchyNode(ClusterType cluster, ClusterHierarchyNode<DataType,ClusterType> firstChild, ClusterHierarchyNode<DataType,ClusterType> secondChild)
DefaultClusterHierarchyNode
.cluster
- The cluster associated with this node.firstChild
- The first child.secondChild
- The second child.public java.util.List<ClusterHierarchyNode<DataType,ClusterType>> getChildren()
ClusterHierarchyNode
public void setChildren(java.util.List<ClusterHierarchyNode<DataType,ClusterType>> children)
children
- The children of this node.public void setChildren(ClusterHierarchyNode<DataType,ClusterType> firstChild, ClusterHierarchyNode<DataType,ClusterType> secondChild)
firstChild
- The first child.secondChild
- The second child.