org.apache.jackrabbit.oak.commons.sort
Class StringSizeEstimator

java.lang.Object
  extended by 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:
https://code.google.com/p/externalsortinginjava

Method Summary
static long estimatedSizeOf(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(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.


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.