public abstract class

GenericPool

extends Object
java.lang.Object
   ↳ org.anddev.andengine.util.pool.GenericPool<T>
Known Direct Subclasses

Summary

Public Constructors
GenericPool()
GenericPool(int pInitialSize)
GenericPool(int pInitialSize, int pGrowth)
Public Methods
synchronized void batchAllocatePoolItems(int pCount)
synchronized int getUnrecycledCount()
synchronized T obtainPoolItem()
synchronized void recyclePoolItem(T pItem)
synchronized void shufflePoolItems()
Protected Methods
abstract T onAllocatePoolItem()
T onHandleAllocatePoolItem()
void onHandleObtainItem(T pItem)
void onHandleRecycleItem(T pItem)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GenericPool ()

public GenericPool (int pInitialSize)

public GenericPool (int pInitialSize, int pGrowth)

Public Methods

public synchronized void batchAllocatePoolItems (int pCount)

public synchronized int getUnrecycledCount ()

public synchronized T obtainPoolItem ()

public synchronized void recyclePoolItem (T pItem)

public synchronized void shufflePoolItems ()

Protected Methods

protected abstract T onAllocatePoolItem ()

protected T onHandleAllocatePoolItem ()

protected void onHandleObtainItem (T pItem)

Parameters
pItem every item that was just obtained from the pool, passes this method.

protected void onHandleRecycleItem (T pItem)

Parameters
pItem every item passes this method just before it gets recycled.