Class Size


  • public final class Size
    extends java.lang.Object
    Holder for the size calculated by the SizeOf engine
    Author:
    Ludovic Orban
    • Constructor Summary

      Constructors 
      Constructor Description
      Size​(long calculated, boolean exact)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCalculated()
      Get the calculated size
      boolean isExact()
      Check if the calculated size is exact
      • Methods inherited from class java.lang.Object

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

      • Size

        public Size​(long calculated,
                    boolean exact)
        Constructor
        Parameters:
        calculated - the calculated size
        exact - true if the calculated size is exact, false if it's an estimate or known to be inaccurate in some way
    • Method Detail

      • getCalculated

        public long getCalculated()
        Get the calculated size
        Returns:
        the calculated size
      • isExact

        public boolean isExact()
        Check if the calculated size is exact
        Returns:
        true if the calculated size is exact, false if it's an estimate or known to be inaccurate in some way