|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.DefaultCluster
public class DefaultCluster
DefaultCluster provides a reasonable default implementation of Cluster.
| Constructor Summary | |
|---|---|
DefaultCluster(Collection<? extends Classification> classifications)
Creates an empty DefaultCluster that represents the specified set of Classifications. |
|
DefaultCluster(Collection<? extends Classification> classifications,
Collection<?> objects)
Creates a DefaultCluster that represent the specified set of Classifications and that contains the specified set of Objects. |
|
| Method Summary | |
|---|---|
void |
add(Object object)
|
boolean |
contains(Object object)
Returns whether this Cluster contains the specified Object. |
Collection<? extends Classification> |
getClassifications()
Returns the set of Classifications represented by this Cluster. |
Collection<? extends Classification> |
getMostSpecificClassifications()
Returns the set of most specific Classifications represented by this Cluster. |
Collection<?> |
getObjects()
Returns the set of Objects contained in this Cluster. |
int |
getSize()
Returns the number of Objects contained in this Cluster. |
void |
setObjects(Collection<?> objects)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCluster(Collection<? extends Classification> classifications)
public DefaultCluster(Collection<? extends Classification> classifications,
Collection<?> objects)
| Method Detail |
|---|
public Collection<? extends Classification> getClassifications()
Cluster
getClassifications in interface Clusterpublic Collection<? extends Classification> getMostSpecificClassifications()
Cluster
getMostSpecificClassifications in interface Clusterpublic Collection<?> getObjects()
Cluster
getObjects in interface Clusterpublic int getSize()
Cluster
getSize in interface Clusterpublic boolean contains(Object object)
Cluster
contains in interface Clusterpublic void setObjects(Collection<?> objects)
public void add(Object object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||