Class NullSizeEstimator<T>

  • All Implemented Interfaces:
    SizeEstimator<T>

    @Internal
    public class NullSizeEstimator<T>
    extends java.lang.Object
    implements SizeEstimator<T>
    NoOp implementation of a size estimator. This will always return 0 as the size and it will warn users that this is being used (it should not be used in production).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long sizeOf​(T element)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullSizeEstimator

        public NullSizeEstimator()