net.sf.ivmaidns.util
Interface TrimToSizeable

All Known Implementing Classes:
ActivityCore, FilterStorage, HashedStorage, IntStorage, ListStorage, ObjectStorage, ObservedCore, SortedStorage, Storage, StorageEnumerator, TreeStorage

public interface TrimToSizeable

Interface for object 'trim-to-size'. A class implementing this interface allows the user to release all extra memory occupied by the object of such class.

Version:
2.0
Author:
Ivan Maidanski

Method Summary
 void trimToSize()
          Frees extra memory.
 

Method Detail

trimToSize

void trimToSize()
Frees extra memory. This method re-allocates internal structures (of the object) releasing occupied but unused memory. By default, shallow 'trim-to-size' is performed. Important notes: this method must be synchronized outside (typically); OutOfMemoryError is never thrown (should be ignored inside the method).