Class StringSizeEstimator

    • Method Detail

      • estimatedSizeOf

        public static long estimatedSizeOf​(String s)
        Estimates the size of a String object in bytes.
        Parameters:
        s - The string to estimate memory footprint.
        Returns:
        The estimated size in bytes.