|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIntList
Method Summary | |
---|---|
boolean |
add(int arg0)
Adds an element to the end of IIntList. |
void |
clear()
Clears all elements from the list. |
boolean |
contains(int elem)
Returns whether list contains element elem |
int |
get(int index)
Gets i-th element from the list. |
boolean |
isEmpty()
Returns true if there are no elements in the list, false if there is at least one element in the list |
int |
numberOfElements()
Returns number of the elements contained in this list. |
int |
removeLast()
Removes last element from the IIntList. |
int |
set(int index,
int elem)
Sets i-th element of the list to value elem . |
int[] |
toArray()
Returns array representation of IntList elements |
Method Detail |
---|
int numberOfElements()
boolean isEmpty()
boolean contains(int elem)
elem
int[] toArray()
boolean add(int arg0)
int removeLast()
void clear()
int get(int index)
Number of elements in the list can be obtained by invoking
numberOfElements()
.
int set(int index, int elem)
elem
. This
operation can be successfully carried out only if the index of the object
is smaller then the number of the elements in the list. Otherwise, the
results are unpredictable.
Number of elements in the list can be obtained by invoking
numberOfElements()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |