Class StringSizeEstimator

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long estimatedSizeOf​(java.lang.String s)
      Estimates the size of a String object in bytes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • estimatedSizeOf

        public static long estimatedSizeOf​(java.lang.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.