Interface KnownSizeEstimation


public interface KnownSizeEstimation
A trait that allows a class to give SizeEstimator more accurate size estimation. When a class extends it, SizeEstimator will query the estimatedSize, and use the returned size as the size of the object. The difference between a KnownSizeEstimation and SizeTracker is that, a SizeTracker still uses SizeEstimator to estimate the size. However, a KnownSizeEstimation can provide a better estimation without using SizeEstimator.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
  • Method Details

    • estimatedSize

      long estimatedSize()