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 SizeOfEngine
key
- 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 SizeOfEngine
maxDepth
- maximum depth of the object graph to traverseabortWhenMaxDepthExceeded
- true if the object traversal should be aborted when the max depth is exceededCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.