|
|
|||||||||||||||||||||
| 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.AssociationMaps
public class AssociationMaps
Helper class to facilitate an association mapping from AssociationID to a map from an object id to an associated object.
| Field Summary | |
|---|---|
private Map<AssociationID,Map<Integer,Object>> |
associations
Holds a mapping from AssociationID to maps for object ids and associated objects. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
AssociationMaps()
Provides an AssociationMaps object ready to set and get mappings from object ids to associated objects. |
|
| Method Summary | ||
|---|---|---|
boolean |
containsKey(AssociationID<?> associationID)
Checks whether this AssociationMaps contains a mapping for a given AssociationID. |
|
|
get(AssociationID<T> associationID)
Provides the mapping from object ids to associated objects for the given AssociationID. |
|
Set<AssociationID> |
keySet()
Provides the set of all association ids pointing to mappings from object ids to objects within this AssociationMaps. |
|
|
put(AssociationID<T> associationID,
Map<Integer,T> associationMap)
Associates a new mapping from object ids to associated objects for a given AssociationID. |
|
| 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,Map<Integer,Object>> associations
| Constructor Detail |
|---|
public AssociationMaps()
| Method Detail |
|---|
public <T> void put(AssociationID<T> associationID,
Map<Integer,T> associationMap)
T - the type of the AssociationID conforming the type of associated objectsassociationID - the AssociationID for the mapping of object id to objectsassociationMap - the mapping of object ids to objectspublic <T> Map<Integer,T> get(AssociationID<T> associationID)
T - the type of the AssociationID conforming the type of associated objectsassociationID - the AssociationID for the mapping of object id to objects
public Set<AssociationID> keySet()
public boolean containsKey(AssociationID<?> associationID)
associationID - the AssociationID to check whether or not it is used as a key already
true if this AssociationMaps contains a mapping for the given AssociationID, false otherwise
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||