Packageorg.openPyro.core
Classpublic class ObjectPool

ObjectPools are used to reuse created objects rather than create new one every time one is needed.



Public Methods
 MethodDefined by
  
ObjectPool(classFactory:ClassFactory)
ObjectPool
  
getObject():Object
ObjectPool
  
ObjectPool
  
returnToPool(r:Object):void
ObjectPool
Constructor detail
ObjectPool()constructor
public function ObjectPool(classFactory:ClassFactory)Parameters
classFactory:ClassFactory
Method detail
getObject()method
public function getObject():Object

Returns
Object
hasReusableObject()method 
public function hasReusableObject():Boolean

Returns
Boolean
returnToPool()method 
public function returnToPool(r:Object):voidParameters
r:Object