|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectPool
This interface defines an object pool. An object pool aims at improving performances by avoiding unnecessary object creations.
Field Summary | |
---|---|
static String |
ITF_NAME
The commonly used name to refer to this interface. |
Method Summary | |
---|---|
Recyclable |
newInstance()
Returns a new instance of object. |
void |
recycleInstance(Recyclable recyclable)
Recycles the object so that it can be reused. |
Field Detail |
---|
static final String ITF_NAME
Method Detail |
---|
Recyclable newInstance()
void recycleInstance(Recyclable recyclable)
recyclable
- the object to be recycled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |