|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.jortho.LowMemoryArrayList<E>
public class LowMemoryArrayList<E>
An ArrayList that need only a minimum of memory size. The list will be need on reading the dictionary with a very large count.
Constructor Summary | |
---|---|
LowMemoryArrayList()
|
Method Summary | |
---|---|
void |
add(E o)
Appends the specified element to the end of this list. |
void |
add(int index,
E element)
Inserts the specified element at the specified position in this list. |
E |
get(int index)
Returns the element at the specified position in this list. |
int |
size()
Returns the number of elements in this list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LowMemoryArrayList()
Method Detail |
---|
public int size()
public E get(int index)
index
- index of the element to return
java.lang.IndexOutOfBoundsException
- if the index is out of rangepublic void add(E o)
o
- element to be appended to this list.public void add(int index, E element)
index
- index at which the specified element is to be insertedelement
- element to be inserted
java.lang.IndexOutOfBoundsException
- if the index is out of range
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |