org.tm4j.tmnav.app.util .Pool
Description
Generic Pool-Implementation. This implementation is not suitable for a large amount of pooled objects since it uses simple ArrayLists to store the free and the used objects internally. All searching is done in a linear way.
Inheritance Hierarchy
- java.lang.Object
- Pool
Method Summary | |
---|---|
void |
addFree(java.lang.Object o)
adds an object o to the list of free objects,
if o is not already contained in this pool
|
void |
addUsed(java.lang.Object o)
adds an object o to the list of used objects,
if o is not already contained in this pool
|
java.lang.Object | getFree() |
void |
setAllFree()
'resets' the pool.
|
void |
setAllFree(org.tm4j.tmnav.app.util.FreeMemberNotification fmn)
'resets' the pool.
|
void |
setFree(java.lang.Object o)
Marks the Object o as free, if it previuosly was
marked as used
|
Related Topics
Imports
Is Contained By
Is Imported By