Class WrappedByteArraySizeCalculator<K,​V>

    • Constructor Detail

      • WrappedByteArraySizeCalculator

        public WrappedByteArraySizeCalculator​(EntrySizeCalculator<?,​?> chained)
    • Method Detail

      • calculateSize

        public long calculateSize​(K key,
                                  V value)
        Description copied from interface: EntrySizeCalculator
        Method used to calculate how much memory in size the key and value use.
        Parameters:
        key - The key for this entry to be used in size calculation
        value - The value for this entry to be used in size calculation
        Returns:
        The size approximately in memory the key and value use