|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.database.Associations
public class Associations
A helper class to facilitate setting of global associations in a database.
| Field Summary | |
|---|---|
private Map<AssociationID,Object> |
associations
Holds the objects associated under given association ids. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
Associations()
Provides an Associations object ready to set and get Objects for association. |
|
| Method Summary | ||
|---|---|---|
|
get(AssociationID<T> associationID)
Retrieves the object associated under the given association id. |
|
Set<AssociationID> |
keySet()
Provides the set of all association ids pointing to objects within this Associations. |
|
|
put(AssociationID<T> associationID,
T associationObject)
Sets the specified object under the given AssociationID. |
|
void |
putAll(Associations associations)
Adds all pairs of association ids and objects currently set in the given Associations object to this Associations object. |
|
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Map<AssociationID,Object> associations
| Constructor Detail |
|---|
public Associations()
| Method Detail |
|---|
public <T> void put(AssociationID<T> associationID,
T associationObject)
T - the type of the object to be associated and the AssociationIDassociationID - the AssociationID to point to the objectassociationObject - the object to be associatedpublic <T> T get(AssociationID<T> associationID)
T - the type of the object to retrieve conforms to the type of the association idassociationID - the association id pointing to the object to retrieve
public Set<AssociationID> keySet()
public void putAll(Associations associations)
associations - an Associations object to copy the contained associations from
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||