Class MemoryEstimator
java.lang.Object
org.ojalgo.machine.MemoryEstimator
MemoryEstimator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate longprivate static final longprivate static final longprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate MemoryEstimatoradd(long bytes) private longalign(long alignement) longestimate()static longestimateArray(Class<?> componentType, int length) static longestimateObject(Class<?> type) (package private) static MemoryEstimatorstatic MemoryEstimatorstatic MemoryEstimatormakeForSubclass(MemoryEstimator parentEstimation)
-
Field Details
-
FINAL_ALIGNEMENT
private static final long FINAL_ALIGNEMENT- See Also:
-
PARENT_ALIGNEMENT
private static final long PARENT_ALIGNEMENT- See Also:
-
WORD
private static final long WORD- See Also:
-
ZERO
private static final long ZERO- See Also:
-
myShallowSize
private long myShallowSize
-
-
Constructor Details
-
MemoryEstimator
private MemoryEstimator() -
MemoryEstimator
MemoryEstimator(long aBase)
-
-
Method Details
-
estimateArray
-
estimateObject
-
makeForClassExtendingObject
-
makeForSubclass
-
make
-
add
-
add
-
estimate
public long estimate() -
add
-
align
private long align(long alignement)
-