Package org.ametys.core.util
Class SizeUtils
- java.lang.Object
-
- org.ametys.core.util.SizeUtils
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SizeUtils.ExcludeFromSizeCalculation
Fields annotated withSizeUtils.ExcludeFromSizeCalculation
are excluded for size calculation
-
Constructor Summary
Constructors Modifier Constructor Description private
SizeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
_isComputable(Object object)
private static long
_sizeOf(Object object, Set<Object> visited)
static long
sizeOf(Object object)
Calculates the heap size of the given object.
-
-
-
Constructor Detail
-
SizeUtils
private SizeUtils()
-
-
Method Detail
-
sizeOf
public static long sizeOf(Object object)
Calculates the heap size of the given object.- Parameters:
object
- the object- Returns:
- the size of the object.
-
_isComputable
private static boolean _isComputable(Object object)
-
-