com.sun.slamd.asn1
Class ListPool

java.lang.Object
  extended bycom.sun.slamd.asn1.ListPool

public class ListPool
extends java.lang.Object

This class implements a list pool, which stores array lists for reuse rather than constantly allocating and freeing memory every time a one is needed and discarded.


Constructor Summary
ListPool()
           
 
Method Summary
static java.util.ArrayList getList()
          Retrieves an array list from this list pool.
static void releaseList(java.util.ArrayList list)
          Returns the provided array list to the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListPool

public ListPool()
Method Detail

getList

public static java.util.ArrayList getList()
Retrieves an array list from this list pool.

Returns:
The array list taken from this list pool.

releaseList

public static void releaseList(java.util.ArrayList list)
Returns the provided array list to the pool.

Parameters:
list - The array list to return to the pool.