|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TrackedIDFactory
A Factory which produces TrackedID flyweights.
TrackedIDFactoryImpl| Method Summary | |
|---|---|
void |
addListener(TrackedIDListener listener)
Adds a listener which receives notification if a trackedID is enqueued for garbage collection. |
boolean |
contains(ID id)
Returns true if there is a TrackedID for that ID, false otherwise. |
TrackedID |
create(ID id)
Determines if a TrackedID already exists and if so uses it, otherwise creates a new TrackedID and maps that weakly and returns the value. |
TrackedID |
get(ID id)
Gets a TrackedID if it exists, otherwise returns null. |
void |
remove(ID id)
Removes a mapping for an ID and the associated TrackedID. |
void |
removeListener(TrackedIDListener listener)
Removes the listener |
| Method Detail |
|---|
TrackedID create(ID id)
id - The id to look up
boolean contains(ID id)
id - The ID to lookup
TrackedID get(ID id)
id - The ID to find.
void remove(ID id)
id - void addListener(TrackedIDListener listener)
listener - void removeListener(TrackedIDListener listener)
listener -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||