Class ClassSizeCatalog

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​int[]>

    abstract class ClassSizeCatalog
    extends java.util.Hashtable<java.lang.String,​int[]>
    Map from class names to size coefficients. The size coefficients can be used to estimate how much memory an instance of the class takes.
    See Also:
    ClassSize.getSizeCoefficients(Class)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static ClassSizeCatalog INSTANCE
      The singleton instance of this class.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static ClassSizeCatalog getInstance()
      Get the singleton ClassSizeCatalog instance.
      • Methods inherited from class java.util.Hashtable

        clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • INSTANCE

        private static final ClassSizeCatalog INSTANCE
        The singleton instance of this class.
    • Constructor Detail

      • ClassSizeCatalog

        ClassSizeCatalog()
    • Method Detail

      • getInstance

        static ClassSizeCatalog getInstance()
        Get the singleton ClassSizeCatalog instance.