org.iids.aos.util
Class ArrayListPool<E>

java.lang.Object
  extended by org.iids.aos.util.ArrayListPool<E>

public class ArrayListPool<E>
extends java.lang.Object

Class ArrayListPool is a thread-safe pool of ArrayLists. There is no maximum for the number of ArrayLists in the pool. New ArrayLists will be created on demand. However, when ArrayLists are not used for a certain period of time, they will be removed, to keep the amount of resources to a minimum.

Author:
Michel Oey

Constructor Summary
ArrayListPool()
           
 
Method Summary
 java.util.ArrayList<E> getInstance()
           
 void releaseInstance(java.util.ArrayList<E> l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListPool

public ArrayListPool()
Method Detail

getInstance

public java.util.ArrayList<E> getInstance()

releaseInstance

public void releaseInstance(java.util.ArrayList<E> l)


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.