Constructor
Variables
Methods
reset(object:T):Void
Called when an object is freed to clear the state of the object for possible later reuse. The default implementation calls {@link Poolable#reset()} if the object is {@link Poolable}.
freeAll(objects:Array<T>):Void
Puts the specified objects in the pool. Null objects within the array are silently ignored.
See also:
free(Object)
newObject():T
Puts the specified object in the pool, making it eligible to be returned by {@link #obtain()}. If the pool already contains {@link #max} free objects, the specified object is reset but not added to the pool.
obtain():T
Returns an object from this pool. The object may be new (from {@link #newObject()}) or reused (previously {@link #free(Object) freed}).