Pool
Instance Members
The maximum number of objects that will be pooled.
The highest number of free objects. Can be reset any time.
Name | Type |
---|---|
object |
spine.support.utils.Pool.T |
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}.
Name | Type |
---|---|
object |
spine.support.utils.Pool.T |
Puts the specified objects in the pool. Null objects within the array are silently ignored.
Name | Type |
---|---|
objects |
Array<spine.support.utils.Pool.T> |
Removes all free objects from this pool.
The number of objects available to be obtained.
Returns |
---|
Int |
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.
Returns |
---|
spine.support.utils.Pool.T |
Returns an object from this pool. The object may be new (from {@link #newObject()}) or reused (previously {@link #free(Object) freed}).
Returns |
---|
spine.support.utils.Pool.T |
Name | Type | Default | Description |
---|---|---|---|
initialCapacity |
Int | 64 |
|
max |
Int | 999999999 |
The maximum number of free objects to store in this pool. |