public abstract class

Pool

extends GenericPool<T>
java.lang.Object
   ↳ org.andengine.util.adt.pool.GenericPool<T>
     ↳ org.andengine.util.adt.pool.Pool<T extends org.andengine.util.adt.pool.PoolItem>

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
Pool()
Pool(int pInitialSize)
Pool(int pInitialSize, int pGrowth)
Pool(int pInitialSize, int pGrowth, int pAvailableItemCountMaximum)
Public Methods
synchronized boolean ownsPoolItem(T pPoolItem)
synchronized void recyclePoolItem(T pPoolItem)
Protected Methods
T onHandleAllocatePoolItem()
void onHandleObtainItem(T pPoolItem)
void onHandleRecycleItem(T pPoolItem)
[Expand]
Inherited Methods
From class org.andengine.util.adt.pool.GenericPool
From class java.lang.Object

Public Constructors

public Pool ()

public Pool (int pInitialSize)

public Pool (int pInitialSize, int pGrowth)

public Pool (int pInitialSize, int pGrowth, int pAvailableItemCountMaximum)

Public Methods

public synchronized boolean ownsPoolItem (T pPoolItem)

public synchronized void recyclePoolItem (T pPoolItem)

Protected Methods

protected T onHandleAllocatePoolItem ()

protected void onHandleObtainItem (T pPoolItem)

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

protected void onHandleRecycleItem (T pPoolItem)

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