public class DiskSizeOfEngine extends Object implements SizeOfEngine
| Constructor and Description |
|---|
DiskSizeOfEngine() |
| Modifier and Type | Method and Description |
|---|---|
SizeOfEngine |
copyWith(int maxDepth,
boolean abortWhenMaxDepthExceeded)
Make a copy of the SizeOf engine, preserving all of its internal state but overriding the specified parameters
|
Size |
sizeOf(Object key,
Object value,
Object container)
Size an element
|
public Size sizeOf(Object key, Object value, Object container)
sizeOf in interface SizeOfEnginekey - the key of the elementvalue - the value of the elementcontainer - the container of the element, ie: element object + eventual overheadpublic SizeOfEngine copyWith(int maxDepth, boolean abortWhenMaxDepthExceeded)
copyWith in interface SizeOfEnginemaxDepth - maximum depth of the object graph to traverseabortWhenMaxDepthExceeded - true if the object traversal should be aborted when the max depth is exceededCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.