- java.lang.Object
-
- org.ojalgo.array.GrowthStrategy
-
final class GrowthStrategy extends java.lang.ObjectTo be used by non fixed size data structures that delegate the actual storage to a DenseArray.
-
-
Constructor Summary
Constructors Constructor Description GrowthStrategy()GrowthStrategy(long initial, long chunk, long segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) longchunk()(package private) GrowthStrategychunk(long chunk)(package private) static GrowthStrategyfrom(MathType mathType)(package private) intgrow(int current)(package private) longgrow(long current)(package private) intinitial()(package private) GrowthStrategyinitial(long initial)Enforced to be <= 1(package private) booleanisChunked(long count)(package private) booleanisSegmented(long count)(package private) <T> TmakeChunk(java.util.function.LongFunction<T> factory)(package private) <T> TmakeInitial(java.util.function.LongFunction<T> factory)(package private) <T> TmakeSegment(java.util.function.LongFunction<T> factory)(package private) longsegment()(package private) GrowthStrategysegment(long segment)
-
-
-
Field Detail
-
CHUNK
private static final long CHUNK
512
-
INITIAL
private static final long INITIAL
- See Also:
- Constant Field Values
-
SEGMENT
private static final long SEGMENT
- See Also:
- Constant Field Values
-
myChunk
private final long myChunk
-
myInitial
private final long myInitial
-
mySegment
private final long mySegment
-
-
Method Detail
-
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 <= 1
-
isChunked
boolean isChunked(long count)
-
isSegmented
boolean isSegmented(long count)
-
makeChunk
<T> T makeChunk(java.util.function.LongFunction<T> factory)
-
makeInitial
<T> T makeInitial(java.util.function.LongFunction<T> factory)
-
makeSegment
<T> T makeSegment(java.util.function.LongFunction<T> factory)
-
segment
long segment()
-
segment
GrowthStrategy segment(long segment)
-
-