|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.ArrayListFactory
public class ArrayListFactory
This class is used to pre-allocate ArrayLists in mission memory. The number of objects and the length of ArrayList are initilised in Construct.
Constructor Summary | |
---|---|
ArrayListFactory(int size,
int capacity)
Constructor with the number of ArrayList and the length for each ArrayList. |
Method Summary | |
---|---|
void |
clear()
Clear the content of all ArrayLists. |
ArrayList |
getNewList()
Return an ArrayList from the store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayListFactory(int size, int capacity)
size
- the number of ArrayListscapacity
- the length of an ArrayListMethod Detail |
---|
public ArrayList getNewList()
public void clear()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |