Package com.db4o.io
Class DoublingGrowthStrategy
- java.lang.Object
-
- com.db4o.io.DoublingGrowthStrategy
-
- All Implemented Interfaces:
GrowthStrategy
public class DoublingGrowthStrategy extends java.lang.Object implements GrowthStrategy
Strategy for file/byte array growth that will always double the current size
-
-
Constructor Summary
Constructors Constructor Description DoublingGrowthStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
newSize(long curSize, long requiredSize)
returns the incremented size after the growth strategy has been applied
-
-
-
Method Detail
-
newSize
public long newSize(long curSize, long requiredSize)
Description copied from interface:GrowthStrategy
returns the incremented size after the growth strategy has been applied- Specified by:
newSize
in interfaceGrowthStrategy
- Parameters:
curSize
- the original size- Returns:
- the new size, after the growth strategy has been applied, must be bigger than curSize
-
-