|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threed.jpct.IntList
public class IntList
A simple list that stores ints.
Constructor Summary | |
---|---|
IntList()
|
Method Summary | |
---|---|
void |
add(int i)
Adds an int to the list. |
void |
clear()
Clears the list. |
void |
compact()
Truncates unused parts from the internal storage list, so that the resulting list doesn't require more memory than it has to. |
int |
get(int pos)
Gets the list's value at a position. |
int |
size()
Returns the size of the list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntList()
Method Detail |
---|
public void add(int i)
i
- the intpublic void clear()
public int get(int pos)
pos
- the position
public int size()
public void compact()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |