Class SerializableObjectSizeOfStragegy

    • Constructor Detail

      • SerializableObjectSizeOfStragegy

        public SerializableObjectSizeOfStragegy()
    • Method Detail

      • sizeOf

        public long sizeOf​(Object obj)
        Description copied from interface: ObjectSizeOfStrategy
        Computes the size of an object. This typically is an estimation, not an absolute accurate size.
        Specified by:
        sizeOf in interface ObjectSizeOfStrategy
        Parameters:
        obj - The serializable object to compute size of
        Returns:
        The size of the object in bytes. failed with -1.