|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Vector ADT, interface.
| Method Summary | |
void |
append(java.lang.Object item)
Insert an Object at the tail of the list. |
void |
clear()
Remove all Objects from the list. |
java.lang.Object |
get()
Gets the current Object's value. |
int |
getLength()
Returns the number of Objects in the list. |
void |
go(int pos)
Sets the current Object to the given index. |
void |
goFirst()
Sets the current Object to the first one in the list. |
void |
goNext()
Sets the current Object to the next one in the list. |
void |
goPrev()
Sets the current Object to the previous one in the list. |
void |
insert(java.lang.Object item)
Insert an Object at the current position. |
boolean |
isEmpty()
Returns whether or not the list is empty. |
boolean |
isInList()
Returns true if the current pointer is valid. |
java.lang.Object |
remove()
Removes and returns the current Object of the list. |
void |
resize(int sz)
Resizes the internal stucture to hold at least the given numer of objects. |
void |
set(java.lang.Object val)
Sets the current Object's value: a reference. |
void |
shrink()
Resizes the internal stucture to use the least amount or memory. |
| Method Detail |
public void clear()
public void insert(java.lang.Object item)
item - Object to add.public void append(java.lang.Object item)
item - Object to append.public java.lang.Object remove()
public void goFirst()
public void goNext()
public void goPrev()
public int getLength()
public void go(int pos)
pos - The index to move to.public void set(java.lang.Object val)
val - The reference to set this list entre to.public java.lang.Object get()
public boolean isEmpty()
public boolean isInList()
public void shrink()
public void resize(int sz)
sz - The minumum number of Objects to hold.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||