Class SizeEstimator


  • public class SizeEstimator
    extends Object
    • Constructor Detail

      • SizeEstimator

        public SizeEstimator()
    • Method Detail

      • estimatedSizeOf

        public static long estimatedSizeOf​(byte[] bytes)
      • estimatedSizeOf

        public static long estimatedSizeOf​(String s)
      • objOverhead

        public static long objOverhead()
      • intField

        public static long intField()
      • linkedListEntry

        public static long linkedListEntry()
      • linkedList

        public static long linkedList()
      • avlTreeEntry

        public static long avlTreeEntry()
      • estimatedSizeOfAvlEntryKey

        public static long estimatedSizeOfAvlEntryKey​(String key)
      • estimatedSizeOfAvlEntryValue

        public static long estimatedSizeOfAvlEntryValue​(String value)
      • estimateAvailableMemory

        public static long estimateAvailableMemory()