I am guessing that you refer to getLongSizeInBytes.
This means tries to find a reasonable estimate for the memory usage. It is a heuristic. If you need to account
for details (+/- 4 bytes here and there), then please do not use this method.
Please refer to the documentation of the method...
* Estimate of the memory usage of this data structure. This can be expected to be within 1% of
* the true memory usage in common usage scenarios.
* If exact measures are needed, we recommend using dedicated libraries
* such as ehcache-sizeofengine.
*
* In adversarial cases, this estimate may be 10x the actual memory usage. For example, if
* you insert a single random value in a bitmap, then over a 100 bytes may be used by the JVM
* whereas this function may return an estimate of 32 bytes.
*
* The same will be true in the "sparse" scenario where you have a small set of
* random-looking integers spanning a wide range of values.