Class SizeUtils


  • public final class SizeUtils
    extends Object
    Helper for manipulating objects heap size.
    • 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.