|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.database.ObjectAndAssociations<O>
public class ObjectAndAssociations<O extends DatabaseObject>
Provides a single database objects and a map of associations associated with this object.
Field Summary | |
---|---|
private Associations |
associations
The map of associations associated with the database objects. |
private O |
object
The database object. |
Constructor Summary | |
---|---|
ObjectAndAssociations(O object,
Associations associations)
Provides a single database objects and a map of associations associated with this object. |
Method Summary | ||
---|---|---|
|
addAssociation(AssociationID<T> associationID,
T association)
Adds the given association with the specified association ID. |
|
Associations |
getAssociations()
Returns the associations associated with the database object. |
|
O |
getObject()
Returns the database object. |
|
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final O extends DatabaseObject object
private final Associations associations
Constructor Detail |
---|
public ObjectAndAssociations(O object, Associations associations)
object
- the database objectassociations
- the map of associations associated with the database objectsMethod Detail |
---|
public O getObject()
public Associations getAssociations()
public <T> void addAssociation(AssociationID<T> associationID, T association)
associationID
- the association IDassociation
- the association to be addedpublic String toString()
toString
in class Object
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |