Class StringSizeEstimator

java.lang.Object
org.apache.jackrabbit.oak.commons.sort.StringSizeEstimator

public final class StringSizeEstimator extends Object
Source copied from a publicly available library.
Author:
Eleftherios Chetzakis
See Also:
  • Method Details

    • 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.