public class ConstantGrowthStrategy extends java.lang.Object implements GrowthStrategy
| Constructor and Description |
|---|
ConstantGrowthStrategy(int growth) |
| Modifier and Type | Method and Description |
|---|---|
long |
newSize(long curSize,
long requiredSize)
returns the incremented size after the growth
strategy has been applied
|
public ConstantGrowthStrategy(int growth)
growth - The constant growth sizepublic long newSize(long curSize,
long requiredSize)
newSize in interface GrowthStrategycurSize - the original size