getPoolCapacity method
Returns the capacity of this object pool. Note : The pool will automatically resize to contain additional objects if the user tries to add more objects than the pool's capacity allows, but this comes at a performance cost.
@return The capacity of the pool.
Implementation
int getPoolCapacity() {
return this.objects.length;
}