db4o 8.0

com.db4o.io
Class DoublingGrowthStrategy

java.lang.Object
  extended by 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
DoublingGrowthStrategy()
           
 
Method Summary
 long newSize(long curSize, long requiredSize)
          returns the incremented size after the growth strategy has been applied
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoublingGrowthStrategy

public DoublingGrowthStrategy()
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 interface GrowthStrategy
Parameters:
curSize - the original size
Returns:
the new size, after the growth strategy has been applied, must be bigger than curSize

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.