org.ojalgo.machine
Class MemoryEstimator

java.lang.Object
  extended by org.ojalgo.machine.MemoryEstimator

public final class MemoryEstimator
extends Object

MemoryEstimator

Author:
apete

Method Summary
 MemoryEstimator add(Class<?> aClass)
           
 MemoryEstimator add(JavaType aJavaType)
           
 long estimate()
           
static long estimateArray(Class<?> aComponentType, int aLength)
           
static long estimateObject(Class<?> aType)
           
static MemoryEstimator makeForClassExtendingObject()
           
static MemoryEstimator makeForSubclass(MemoryEstimator aParentEstimation)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

estimateArray

public static long estimateArray(Class<?> aComponentType,
                                 int aLength)

estimateObject

public static long estimateObject(Class<?> aType)

makeForClassExtendingObject

public static MemoryEstimator makeForClassExtendingObject()

makeForSubclass

public static MemoryEstimator makeForSubclass(MemoryEstimator aParentEstimation)

add

public MemoryEstimator add(Class<?> aClass)

add

public MemoryEstimator add(JavaType aJavaType)

estimate

public long estimate()