DataType
- The data type to create the clusters over.public class DefaultIncrementalClusterCreator<DataType> extends DefaultClusterCreator<DataType> implements IncrementalClusterCreator<DefaultCluster<DataType>,DataType>
IncrementalClusterCreator
interface
that just creates a cluster as having a collection of members.Constructor and Description |
---|
DefaultIncrementalClusterCreator()
Creates a new
DefaultIncrementalClusterCreator . |
Modifier and Type | Method and Description |
---|---|
void |
addClusterMember(DefaultCluster<DataType> cluster,
DataType member)
Adds a member to the given cluster.
|
DefaultCluster<DataType> |
createCluster()
Creates a new, empty cluster.
|
boolean |
removeClusterMember(DefaultCluster<DataType> cluster,
DataType member)
Removes a member from the given cluster.
|
createCluster
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCluster
clone
public DefaultIncrementalClusterCreator()
DefaultIncrementalClusterCreator
.public DefaultCluster<DataType> createCluster()
IncrementalClusterCreator
createCluster
in interface IncrementalClusterCreator<DefaultCluster<DataType>,DataType>
public void addClusterMember(DefaultCluster<DataType> cluster, DataType member)
IncrementalClusterCreator
addClusterMember
in interface IncrementalClusterCreator<DefaultCluster<DataType>,DataType>
cluster
- The cluster to add a member to.member
- The member to add to the cluster.public boolean removeClusterMember(DefaultCluster<DataType> cluster, DataType member)
IncrementalClusterCreator
removeClusterMember
in interface IncrementalClusterCreator<DefaultCluster<DataType>,DataType>
cluster
- The cluster to remove the member from.member
- The member to remove.