|
AddressSpace library v1.0 beta | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mmap.IntList
This list keeps integers in arrival order.
Elements can be extracted from the list in the same order used for insertion,
simulating a FIFO fashion.
Integer.MIN_VALUE is used as a placeholder when the list is empty.
Inner Class Summary | |
protected class |
IntList.Entry
|
Field Summary | |
protected IntList.Entry |
cursor
Actual examined entry of the list. |
protected int |
howMany
Number of objects in the list. |
protected IntList.Entry |
last
Last entry of the list. |
protected static int |
noNumbers
Number returned when no elements are available. |
protected IntList.Entry |
queue
First entry of the list. |
Constructor Summary | |
IntList()
Create a new empty list. |
Method Summary | |
void |
add(int value)
Add an integer to the list. |
void |
clear()
Clear the list. |
int |
get()
Get an integer from the list. |
int |
getSize()
Get the size of the list. |
java.lang.String |
toString()
Convert the list in a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected IntList.Entry queue
protected IntList.Entry last
protected IntList.Entry cursor
protected int howMany
protected static final int noNumbers
Constructor Detail |
public IntList()
Method Detail |
public void add(int value)
value
- the integer to add.public int get()
public void clear()
public int getSize()
public java.lang.String toString()
|
Help is irrilevant You will be assimilated! |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |