Package com.db4o.io
Class ConstantGrowthStrategy
- java.lang.Object
-
- com.db4o.io.ConstantGrowthStrategy
-
- All Implemented Interfaces:
GrowthStrategy
public class ConstantGrowthStrategy extends java.lang.Object implements GrowthStrategy
Strategy for file/byte array growth by a constant factor
-
-
Constructor Summary
Constructors Constructor Description ConstantGrowthStrategy(int growth)
-
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)
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
-
-