|
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 | +--mmap.IntOrderedList
This list keeps integers in descending order.
This class doesn't use the btree algorithm, so it's much more performing
if integers are inserted in ascending order.
Integer.MIN_VALUE is used as a placeholder when the list is empty.
Inner classes inherited from class mmap.IntList |
IntList.Entry |
Fields inherited from class mmap.IntList |
cursor,
howMany,
last,
noNumbers,
queue |
Constructor Summary | |
IntOrderedList()
Create a new empty list. |
Method Summary | |
void |
add(int value)
Add an integer to the list. |
int |
first()
Get the first (greatest) integer in the list. |
int |
last()
Get the last (lowest) integer in the list. |
Methods inherited from class mmap.IntList |
clear,
get,
getSize,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public IntOrderedList()
Method Detail |
public void add(int value)
value
- the integer to add.public int first()
public int last()
|
Help is irrilevant You will be assimilated! |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |