Class GrowthStrategy

java.lang.Object
org.ojalgo.array.GrowthStrategy

final class GrowthStrategy extends Object
To be used by non fixed size data structures that delegate the actual storage to a DenseArray.
  • Field Details

    • CHUNK

      private static final long CHUNK
      512
    • INITIAL

      private static final long INITIAL
      See Also:
    • SEGMENT

      private static final long SEGMENT
      See Also:
    • myChunk

      private final long myChunk
    • myInitial

      private final long myInitial
    • mySegment

      private final long mySegment
  • Constructor Details

    • GrowthStrategy

      GrowthStrategy()
    • GrowthStrategy

      GrowthStrategy(long initial, long chunk, long segment)
  • Method Details

    • from

      static GrowthStrategy from(MathType mathType)
    • chunk

      long chunk()
    • chunk

      GrowthStrategy chunk(long chunk)
    • grow

      int grow(int current)
    • grow

      long grow(long current)
    • initial

      int initial()
    • initial

      GrowthStrategy initial(long initial)
      Enforced to be invalid input: '<'= 1
    • isChunked

      boolean isChunked(long count)
    • isSegmented

      boolean isSegmented(long count)
    • makeChunk

      <T> T makeChunk(LongFunction<T> factory)
    • makeInitial

      <T> T makeInitial(LongFunction<T> factory)
    • makeSegment

      <T> T makeSegment(LongFunction<T> factory)
    • segment

      long segment()
    • segment

      GrowthStrategy segment(long segment)