|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.database.Associations
public class Associations
A helper class to facilitate setting of global associations in a database.
Field Summary | |
---|---|
private AnyMap<AssociationID<?>> |
associations
Map to store the actual data. |
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. |
|
void |
putUnchecked(AssociationID<?> associationID,
Object associationObject)
Sets the specified object under the given AssociationID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AnyMap<AssociationID<?>> 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 void putUnchecked(AssociationID<?> associationID, Object associationObject)
associationID
- 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 |