Interface Cacheable

    • Method Detail

      • getCachedSize

        int getCachedSize()
                   throws CannotCalculateSizeException
        Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.

        Returns:
        the size of the Object in bytes.
        Throws:
        CannotCalculateSizeException - if the size cannot be calculated