public final class MemoryEstimator extends Object
Modifier and Type | Method and Description |
---|---|
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) |
public static long estimateArray(Class<?> aComponentType, int aLength)
public static long estimateObject(Class<?> aType)
public static MemoryEstimator makeForClassExtendingObject()
public static MemoryEstimator makeForSubclass(MemoryEstimator aParentEstimation)
public MemoryEstimator add(Class<?> aClass)
public MemoryEstimator add(JavaType aJavaType)
public long estimate()
Copyright © 2019 Optimatika. All rights reserved.