| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final SizeOfFilter | |
| private static final Logger | |
| private final int | |
| private final SizeOf | |
| private static final boolean | |
| public static final String | USER_FILTER_RESOURCE
System property defining a user specific resource based size-of filter. |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | DefaultSizeOfEngine(int
the max object graph that will be traversed. maxDepth, boolean true if the object traversal should be aborted when the max depth is exceeded abortWhenMaxDepthExceeded)Creates a default size of engine using the best available sizing algorithm. |
| public | DefaultSizeOfEngine(int
the max object graph that will be traversed. maxDepth, boolean true if the object traversal should be aborted when the max depth is exceeded abortWhenMaxDepthExceeded, boolean true if no info log explaining which agent was chosen should be printed silent)Creates a default size of engine using the best available sizing algorithm. |
| private | DefaultSizeOfEngine(DefaultSizeOfEngine defaultSizeOfEngine, int maxDepth, boolean abortWhenMaxDepthExceeded)
|
| Modifier and Type | Method and Description |
|---|---|
| public SizeOfEngine | copyWith(int
maximum depth of the object graph to traverse maxDepth, boolean true if the object traversal should be aborted when the max depth is exceeded abortWhenMaxDepthExceeded)Implements net. |
| private static SizeOfFilter | |
| private static boolean | |
| public Size | sizeOf(final Object
the key of the element key, final Object the value of the element value, final Object the container of the element, ie: element object + eventual overhead container)Implements net. |
| abortWhenMaxDepthExceeded | back to summary |
|---|---|
| private final boolean abortWhenMaxDepthExceeded | |
| DEFAULT_FILTER | back to summary |
|---|---|
| private static final SizeOfFilter DEFAULT_FILTER | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| maxDepth | back to summary |
|---|---|
| private final int maxDepth | |
| sizeOf | back to summary |
|---|---|
| private final SizeOf sizeOf | |
| USE_VERBOSE_DEBUG_LOGGING | back to summary |
|---|---|
| private static final boolean USE_VERBOSE_DEBUG_LOGGING | |
| USER_FILTER_RESOURCE | back to summary |
|---|---|
| public static final String USER_FILTER_RESOURCE System property defining a user specific resource based size-of filter. The resource pointed to by this property must be a list of fully qualified field or class names, one per line: # This is a comment org.mycompany.domain.MyType org.mycompany.domain.MyOtherType.myFieldFields or types matching against lines in this resource will be ignored when calculating the size of the object graph. | |
| VERBOSE_DEBUG_LOGGING | back to summary |
|---|---|
| private static final String VERBOSE_DEBUG_LOGGING | |
| DefaultSizeOfEngine | back to summary |
|---|---|
| public DefaultSizeOfEngine(int maxDepth, boolean abortWhenMaxDepthExceeded) Creates a default size of engine using the best available sizing algorithm.
| |
| DefaultSizeOfEngine | back to summary |
|---|---|
| public DefaultSizeOfEngine(int maxDepth, boolean abortWhenMaxDepthExceeded, boolean silent) Creates a default size of engine using the best available sizing algorithm.
| |
| DefaultSizeOfEngine | back to summary |
|---|---|
| private DefaultSizeOfEngine(DefaultSizeOfEngine defaultSizeOfEngine, int maxDepth, boolean abortWhenMaxDepthExceeded) | |
| copyWith | back to summary |
|---|---|
| public SizeOfEngine copyWith(int maxDepth, boolean abortWhenMaxDepthExceeded) Implements net. Doc from net. Make a copy of the SizeOf engine, preserving all of its internal state but overriding the specified parameters
| |
| getUserFilter | back to summary |
|---|---|
| private static SizeOfFilter getUserFilter() | |
| getVerboseSizeOfDebugLogging | back to summary |
|---|---|
| private static boolean getVerboseSizeOfDebugLogging() | |
| sizeOf | back to summary |
|---|---|
| public Size sizeOf(final Object key, final Object value, final Object container) Implements net. Doc from net. Size an element | |