|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.asn1.ListPool
public class ListPool
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 |
|---|
public ListPool()
| Method Detail |
|---|
public static java.util.ArrayList getList()
public static void releaseList(java.util.ArrayList list)
list - The array list to return to the pool.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||