|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
This interface is declared by any object in the starlibj that wants to announce to the world that it will behave a lot like a java.util.vector. Anyone familiar with the java.util.vector class should have no problem understanding how yo use a class that implements the VectorLike interface.
java.util.vector| Method Summary | |
void |
addElement(java.lang.Object obj)
Just like the Vector method of the same name. |
boolean |
contains(java.lang.Object obj)
Just like the Vector method of the same name. |
java.lang.Object |
elementAt(int index)
Just like the Vector method of the same name. |
java.util.Enumeration |
elements()
Just like the Vector method of the same name. |
java.lang.Object |
firstElement()
Just like the Vector method of the same name. |
int |
indexOf(java.lang.Object obj)
Just like the Vector method of the same name. |
int |
indexOf(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
void |
insertElementAt(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
boolean |
isEmpty()
Just like the Vector method of the same name. |
java.lang.Object |
lastElement()
Just like the Vector method of the same name. |
int |
lastIndexOf(java.lang.Object obj)
Just like the Vector method of the same name. |
int |
lastIndexOf(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
boolean |
removeElement(java.lang.Object obj)
Just like the Vector method of the same name. |
void |
removeElementAt(int index)
Similar to the Vector method of the same name. |
void |
setElementAt(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
int |
size()
|
| Method Detail |
public int size()
public boolean isEmpty()
java.util.Vector.isEmptypublic java.util.Enumeration elements()
java.util.Vector.Enumerationpublic boolean contains(java.lang.Object obj)
java.util.Vector.containspublic int indexOf(java.lang.Object obj)
java.util.Vector.indexOf
public int indexOf(java.lang.Object obj,
int index)
java.util.Vector.indexOfpublic int lastIndexOf(java.lang.Object obj)
java.util.Vector.lastIndexOf
public int lastIndexOf(java.lang.Object obj,
int index)
java.util.Vector.lastIndexOfpublic java.lang.Object elementAt(int index)
java.util.Vector.elementAtpublic java.lang.Object firstElement()
java.util.Vector.firstElementpublic java.lang.Object lastElement()
java.util.Vector.lastElement
public void setElementAt(java.lang.Object obj,
int index)
throws WrongElementType
java.util.Vector.setElementAtpublic void removeElementAt(int index)
java.util.Vector.removeElementAt
public void insertElementAt(java.lang.Object obj,
int index)
throws WrongElementType
java.util.Vector.insertElementAt
public void addElement(java.lang.Object obj)
throws WrongElementType
java.util.Vector.addElementpublic boolean removeElement(java.lang.Object obj)
java.util.Vector.removeElement
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||