Package com.db4o.io

Class ConstantGrowthStrategy

  • All Implemented Interfaces:
    GrowthStrategy

    public class ConstantGrowthStrategy
    extends java.lang.Object
    implements GrowthStrategy
    Strategy for file/byte array growth by a constant factor
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConstantGrowthStrategy

        public ConstantGrowthStrategy​(int growth)
        Parameters:
        growth - The constant growth size
    • 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 interface GrowthStrategy
        Parameters:
        curSize - the original size
        Returns:
        the new size