Class InstancePool<T>
Type Parameters
- T
Constructors
constructor
Type Parameters
- T
Returns InstancePool<T>
Methods
add
init
Make all the instances available again
Returns void
isEmpty
Check if there are still available instances in the pool.
Returns boolean
pop
Pops one instance from the pool.
Returns T
reset
Remove all elements
Returns void
Was this helpful?
Add an instance to the pool