DataType
- The type of the data in the cluster.ClusterType
- The type of cluster contained in the hierarchy node.public abstract class AbstractClusterHierarchyNode<DataType,ClusterType extends Cluster<DataType>> extends AbstractCloneableSerializable implements ClusterHierarchyNode<DataType,ClusterType>
ClusterHierarchyNode
class. It
keeps track of the cluster.Modifier and Type | Field and Description |
---|---|
protected ClusterType |
cluster
The cluster associated with the node.
|
Constructor and Description |
---|
AbstractClusterHierarchyNode()
Creates a new
AbstractClusterHierarchyNode . |
AbstractClusterHierarchyNode(ClusterType cluster)
Creates a new
AbstractClusterHierarchyNode . |
Modifier and Type | Method and Description |
---|---|
ClusterType |
getCluster()
Gets the cluster associated with the node.
|
java.util.Collection<DataType> |
getMembers()
Gets the member objects of the cluster.
|
boolean |
hasChildren()
True if this node has any children.
|
void |
setCluster(ClusterType cluster)
Sets the cluster associated with the node.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren
clone
protected ClusterType extends Cluster<DataType> cluster
public AbstractClusterHierarchyNode()
AbstractClusterHierarchyNode
.public AbstractClusterHierarchyNode(ClusterType cluster)
AbstractClusterHierarchyNode
.cluster
- The cluster associated with the node.public boolean hasChildren()
ClusterHierarchyNode
hasChildren
in interface ClusterHierarchyNode<DataType,ClusterType extends Cluster<DataType>>
public java.util.Collection<DataType> getMembers()
Cluster
getMembers
in interface Cluster<DataType>
public ClusterType getCluster()
ClusterHierarchyNode
getCluster
in interface ClusterHierarchyNode<DataType,ClusterType extends Cluster<DataType>>
public void setCluster(ClusterType cluster)
cluster
- The cluster associated with the node.