Interface ConsolidatableCollection

    • Method Summary

      Modifier and Type Method Description
      long consolidate()
      Consolidates the internal storage of this collection by discarding all elements of the internal storage that have become obsolete or otherwise unneeded anymore.
    • Method Detail

      • consolidate

        long consolidate()
        Consolidates the internal storage of this collection by discarding all elements of the internal storage that have become obsolete or otherwise unneeded anymore. (e.g. WeakReference entries whose reference has been cleared).

        If this is not possible or not needed in the concrete implementation, this method does nothing and returns 0.

        Returns:
        the number of discarded entries.