Class DefaultObjectSizeEstimator

    • Constructor Detail

      • DefaultObjectSizeEstimator

        public DefaultObjectSizeEstimator()
        Creates a new instance.
    • Method Detail

      • estimateSize

        public int estimateSize​(Object o)
        Description copied from interface: ObjectSizeEstimator
        Returns the estimated size of the specified object in bytes.
        Specified by:
        estimateSize in interface ObjectSizeEstimator
        Returns:
        a positive integer which represents the size of the specified object in bytes