EDU.bmrb.starlibj
Interface StarVectorLike


public interface StarVectorLike

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.

See Also:
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

size

public int size()

isEmpty

public boolean isEmpty()
Just like the Vector method of the same name.
See Also:
java.util.Vector.isEmpty

elements

public java.util.Enumeration elements()
Just like the Vector method of the same name.
See Also:
java.util.Vector.Enumeration

contains

public boolean contains(java.lang.Object obj)
Just like the Vector method of the same name.
See Also:
java.util.Vector.contains

indexOf

public int indexOf(java.lang.Object obj)
Just like the Vector method of the same name.
See Also:
java.util.Vector.indexOf

indexOf

public int indexOf(java.lang.Object obj,
                   int index)
Just like the Vector method of the same name.
See Also:
java.util.Vector.indexOf

lastIndexOf

public int lastIndexOf(java.lang.Object obj)
Just like the Vector method of the same name.
See Also:
java.util.Vector.lastIndexOf

lastIndexOf

public int lastIndexOf(java.lang.Object obj,
                       int index)
Just like the Vector method of the same name.
See Also:
java.util.Vector.lastIndexOf

elementAt

public java.lang.Object elementAt(int index)
Just like the Vector method of the same name.
See Also:
java.util.Vector.elementAt

firstElement

public java.lang.Object firstElement()
Just like the Vector method of the same name.
See Also:
java.util.Vector.firstElement

lastElement

public java.lang.Object lastElement()
Just like the Vector method of the same name.
See Also:
java.util.Vector.lastElement

setElementAt

public void setElementAt(java.lang.Object obj,
                         int index)
                  throws WrongElementType
Just like the Vector method of the same name.
See Also:
java.util.Vector.setElementAt

removeElementAt

public void removeElementAt(int index)
Similar to the Vector method of the same name.
See Also:
java.util.Vector.removeElementAt

insertElementAt

public void insertElementAt(java.lang.Object obj,
                            int index)
                     throws WrongElementType
Just like the Vector method of the same name.
See Also:
java.util.Vector.insertElementAt

addElement

public void addElement(java.lang.Object obj)
                throws WrongElementType
Just like the Vector method of the same name.
See Also:
java.util.Vector.addElement

removeElement

public boolean removeElement(java.lang.Object obj)
Just like the Vector method of the same name.
See Also:
java.util.Vector.removeElement