|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface UtlPool.Item<T extends UtlPool.Item<T>>
Defines a 'poolable' item.
Method Summary | |
---|---|
UtlPool<T> |
getPool()
Get a pool item's pool. |
T |
init()
Initialize an item. |
T |
setPool(UtlPool<T> pool)
Set a pool item's pool. |
Method Detail |
---|
T init()
This method is invoked by an item pool very time an item is put into the pool. The method should wipe the contents of the item so as to present a fresh instance of the item to the caller when retrieved from the pool.
T setPool(UtlPool<T> pool)
This method is invoked by an item pool at the time an item is added to the pool. The intent is to record the item's source pool in the item so it can be disposed back into the pool when the user is done working with it.
UtlPool<T> getPool()
This method should return the pool set using setPool(com.neeve.util.UtlPool
setPool(com.neeve.util.UtlPool)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |