|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IntList
Interface for a list structure that stores ints
| Method Summary | |
|---|---|
void |
add(int item)
Add an int |
void |
clear()
Clear structure |
int |
get(int index)
Get int at index position |
IntIterator |
iterator()
Get an iterator |
void |
set(int index,
int item)
Set item at index |
int |
size()
Size of structure |
int[] |
toArray()
Make an array view |
| Method Detail |
|---|
int get(int index)
index - position to get element form
void set(int index,
int item)
index - position to setitem - item to setvoid clear()
int[] toArray()
IntIterator iterator()
void add(int item)
throws java.lang.IndexOutOfBoundsException
item - int to add
java.lang.IndexOutOfBoundsException - list to smallint size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||