public interface SizeOfEngine
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(java.lang.Object key,
java.lang.Object value,
java.lang.Object container)
Size an element
|
Size sizeOf(java.lang.Object key, java.lang.Object value, java.lang.Object container)
key
- the key of the elementvalue
- the value of the elementcontainer
- the container of the element, ie: element object + eventual overheadSizeOfEngine copyWith(int maxDepth, boolean abortWhenMaxDepthExceeded)
maxDepth
- maximum depth of the object graph to traverseabortWhenMaxDepthExceeded
- true if the object traversal should be aborted when the max depth is exceeded