Class SizeFunctions

java.lang.Object
com.complexible.common.base.SizeFunctions

public final class SizeFunctions extends Object
Implementation of size computation for commonly used object types. The result will typically be an approximation rather than an exact amount. Speed is more important than accuracy since this utility is primarily used to adjust the number of elements in a cache.
Version:
2.0
Author:
Evren Sirin
  • Field Details

  • Method Details

    • constantSize

      public static <T> SizeFunction<T> constantSize(int size)