Static variables
Static methods
staticcompute (rate:Int, capacity:Int):Int
Computes a new capacity from the given growth rate
constant and the current capacity
.
If rate
> 0, capacity
grows at a constant rate: newCapacity = capacity + rate