<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.util.Vector
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.TimeZone.html#_top_">Previous</a>  <a href="Package-java.util.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.Vector
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.util.Vector
</pre>
<hr>
<dl>
  <dt> public class <b>Vector</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.lang.Cloneable.html#_top_">Cloneable</a>, <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
The <code>Vector</code> class implements a growable array of 
 objects. Like an array, it contains components that can be 
 accessed using an integer index. However, the size of a 
 <code>Vector</code> can grow or shrink as needed to accommodate 
 adding and removing items after the <code>Vector</code> has been created.
 <p>
 Each vector tries to optimize storage management by maintaining a 
 <code>capacity</code> and a <code>capacityIncrement</code>. The 
 <code>capacity</code> is always at least as large as the vector 
 size; it is usually larger because as components are added to the 
 vector, the vector's storage increases in chunks the size of 
 <code>capacityIncrement</code>. An application can increase the 
 capacity of a vector before inserting a large number of 
 components; this reduces the amount of incremental reallocation.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#capacityIncrement"><b>capacityIncrement</b></a>
  <dd>  The amount by which the capacity of the vector is automatically 
 incremented when its size becomes greater than its capacity.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#elementCount"><b>elementCount</b></a>
  <dd>  The number of valid components in the vector.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#elementData"><b>elementData</b></a>
  <dd>  The array buffer into which the components of the vector are 
 stored.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Vector()"><b>Vector</b></a>()
  <dd>  Constructs an empty vector.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Vector(int)"><b>Vector</b></a>(int)
  <dd>  Constructs an empty vector with the specified initial capacity.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Vector(int, int)"><b>Vector</b></a>(int, int)
  <dd>  Constructs an empty vector with the specified initial capacity and
 capacity increment.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addElement(java.lang.Object)"><b>addElement</b></a>(Object)
  <dd>  Adds the specified component to the end of this vector, 
 increasing its size by one.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#capacity()"><b>capacity</b></a>()
  <dd>  Returns the current capacity of this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clone()"><b>clone</b></a>()
  <dd>  Returns a clone of this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#contains(java.lang.Object)"><b>contains</b></a>(Object)
  <dd>  Tests if the specified object is a component in this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#copyInto(java.lang.Object[])"><b>copyInto</b></a>(Object[])
  <dd>  Copies the components of this vector into the specified array.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#elementAt(int)"><b>elementAt</b></a>(int)
  <dd>  Returns the component at the specified index.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#elements()"><b>elements</b></a>()
  <dd>  Returns an enumeration of the components of this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ensureCapacity(int)"><b>ensureCapacity</b></a>(int)
  <dd>  Increases the capacity of this vector, if necessary, to ensure 
 that it can hold at least the number of components specified by 
 the minimum capacity argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#firstElement()"><b>firstElement</b></a>()
  <dd>  Returns the first component of this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#indexOf(java.lang.Object)"><b>indexOf</b></a>(Object)
  <dd>  Searches for the first occurence of the given argument, testing 
 for equality using the <code>equals</code> method.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#indexOf(java.lang.Object, int)"><b>indexOf</b></a>(Object, int)
  <dd>  Searches for the first occurence of the given argument, beginning 
 the search at <code>index</code>, and testing for equality using 
 the <code>equals</code> method.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#insertElementAt(java.lang.Object, int)"><b>insertElementAt</b></a>(Object, int)
  <dd>  Inserts the specified object as a component in this vector at the 
 specified <code>index</code>.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isEmpty()"><b>isEmpty</b></a>()
  <dd>  Tests if this vector has no components.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#lastElement()"><b>lastElement</b></a>()
  <dd>  Returns the last component of the vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#lastIndexOf(java.lang.Object)"><b>lastIndexOf</b></a>(Object)
  <dd>  Returns the index of the last occurrence of the specified object in
 this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#lastIndexOf(java.lang.Object, int)"><b>lastIndexOf</b></a>(Object, int)
  <dd>  Searches backwards for the specified object, starting from the 
 specified index, and returns an index to it.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#removeAllElements()"><b>removeAllElements</b></a>()
  <dd>  Removes all components from this vector and sets its size to zero.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#removeElement(java.lang.Object)"><b>removeElement</b></a>(Object)
  <dd>  Removes the first occurrence of the argument from this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#removeElementAt(int)"><b>removeElementAt</b></a>(int)
  <dd>  Deletes the component at the specified index.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setElementAt(java.lang.Object, int)"><b>setElementAt</b></a>(Object, int)
  <dd>  Sets the component at the specified <code>index</code> of this 
 vector to be the specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setSize(int)"><b>setSize</b></a>(int)
  <dd>  Sets the size of this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#size()"><b>size</b></a>()
  <dd>  Returns the number of components in this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns a string representation of this vector.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#trimToSize()"><b>trimToSize</b></a>()
  <dd>  Trims the capacity of this vector to be the vector's current 
 size.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="elementData"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>elementData</b>
<pre>
 protected <a href="java.lang.Object.html#_top_">Object</a> elementData[]
</pre>
<dl>
  <dd> The array buffer into which the components of the vector are 
 stored. The capacity of the vector is the length of this array buffer.<p>
</dl>
<a name="elementCount"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>elementCount</b>
<pre>
 protected int elementCount
</pre>
<dl>
  <dd> The number of valid components in the vector.<p>
</dl>
<a name="capacityIncrement"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>capacityIncrement</b>
<pre>
 protected int capacityIncrement
</pre>
<dl>
  <dd> The amount by which the capacity of the vector is automatically 
 incremented when its size becomes greater than its capacity. If 
 the capacity increment is <code>0</code>, the capacity of the 
 vector is doubled each time it needs to grow.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Vector"></a>
<a name="Vector(int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Vector</b>
<pre>
 public Vector(int initialCapacity,
               int capacityIncrement)
</pre>
<dl>
  <dd> Constructs an empty vector with the specified initial capacity and
 capacity increment.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> initialCapacity - the initial capacity of the vector.
    <dd> capacityIncrement - the amount by which the capacity is
                              increased when the vector overflows.
  </dl></dd>
</dl>
<a name="Vector(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Vector</b>
<pre>
 public Vector(int initialCapacity)
</pre>
<dl>
  <dd> Constructs an empty vector with the specified initial capacity.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> initialCapacity - the initial capacity of the vector.
  </dl></dd>
</dl>
<a name="Vector()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Vector</b>
<pre>
 public Vector()
</pre>
<dl>
  <dd> Constructs an empty vector.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="copyInto(java.lang.Object[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="copyInto"><b>copyInto</b></a>
<pre>
 public final synchronized void copyInto(<a href="java.lang.Object.html#_top_">Object</a> anArray[])
</pre>
<dl>
  <dd> Copies the components of this vector into the specified array. 
 The array must be big enough to hold all the objects in this  vector.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> anArray - the array into which the components get copied.
  </dl></dd>
</dl>
<a name="trimToSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="trimToSize"><b>trimToSize</b></a>
<pre>
 public final synchronized void trimToSize()
</pre>
<dl>
  <dd> Trims the capacity of this vector to be the vector's current 
 size. An application can use this operation to minimize the 
 storage of a vector.
<p>
</dl>
<a name="ensureCapacity(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="ensureCapacity"><b>ensureCapacity</b></a>
<pre>
 public final synchronized void ensureCapacity(int minCapacity)
</pre>
<dl>
  <dd> Increases the capacity of this vector, if necessary, to ensure 
 that it can hold at least the number of components specified by 
 the minimum capacity argument.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> minCapacity - the desired minimum capacity.
  </dl></dd>
</dl>
<a name="setSize(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setSize"><b>setSize</b></a>
<pre>
 public final synchronized void setSize(int newSize)
</pre>
<dl>
  <dd> Sets the size of this vector. If the new size is greater than the 
 current size, new <code>null</code> items are added to the end of 
 the vector. If the new size is less than the current size, all 
 components at index <code>newSize</code> and greater are discarded.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> newSize - the new size of this vector.
  </dl></dd>
</dl>
<a name="capacity()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="capacity"><b>capacity</b></a>
<pre>
 public final int capacity()
</pre>
<dl>
  <dd> Returns the current capacity of this vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the current capacity of this vector.
  </dl></dd>
</dl>
<a name="size()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="size"><b>size</b></a>
<pre>
 public final int size()
</pre>
<dl>
  <dd> Returns the number of components in this vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the number of components in this vector.
  </dl></dd>
</dl>
<a name="isEmpty()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isEmpty"><b>isEmpty</b></a>
<pre>
 public final boolean isEmpty()
</pre>
<dl>
  <dd> Tests if this vector has no components.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if this vector has no components;
          <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="elements()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="elements"><b>elements</b></a>
<pre>
 public final synchronized <a href="java.util.Enumeration.html#_top_">Enumeration</a> elements()
</pre>
<dl>
  <dd> Returns an enumeration of the components of this vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> an enumeration of the components of this vector.
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.Enumeration.html#_top_">Enumeration</a>
  </dl></dd>
</dl>
<a name="contains(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="contains"><b>contains</b></a>
<pre>
 public final boolean contains(<a href="java.lang.Object.html#_top_">Object</a> elem)
</pre>
<dl>
  <dd> Tests if the specified object is a component in this vector.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> elem - an object.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the specified object is a component in
          this vector; <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="indexOf(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="indexOf"><b>indexOf</b></a>
<pre>
 public final int indexOf(<a href="java.lang.Object.html#_top_">Object</a> elem)
</pre>
<dl>
  <dd> Searches for the first occurence of the given argument, testing 
 for equality using the <code>equals</code> method.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> elem - an object.
    <dt> <b>Returns:</b>
    <dd> the index of the first occurrence of the argument in this
          vector; returns <code>-1</code> if the object is not found.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a>
  </dl></dd>
</dl>
<a name="indexOf(java.lang.Object, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="indexOf"><b>indexOf</b></a>
<pre>
 public final synchronized int indexOf(<a href="java.lang.Object.html#_top_">Object</a> elem,
                                       int index)
</pre>
<dl>
  <dd> Searches for the first occurence of the given argument, beginning 
 the search at <code>index</code>, and testing for equality using 
 the <code>equals</code> method.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> elem - an object.
    <dd> index - the index to start searching from.
    <dt> <b>Returns:</b>
    <dd> the index of the first occurrence of the object argument in
          this vector at position <code>index</code> or later in the
          vector; returns <code>-1</code> if the object is not found.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a>
  </dl></dd>
</dl>
<a name="lastIndexOf(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="lastIndexOf"><b>lastIndexOf</b></a>
<pre>
 public final int lastIndexOf(<a href="java.lang.Object.html#_top_">Object</a> elem)
</pre>
<dl>
  <dd> Returns the index of the last occurrence of the specified object in
 this vector.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> elem - the desired component.
    <dt> <b>Returns:</b>
    <dd> the index of the last occurrence of the specified object in
          this vector; returns <code>-1</code> if the object is not found.
  </dl></dd>
</dl>
<a name="lastIndexOf(java.lang.Object, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="lastIndexOf"><b>lastIndexOf</b></a>
<pre>
 public final synchronized int lastIndexOf(<a href="java.lang.Object.html#_top_">Object</a> elem,
                                           int index)
</pre>
<dl>
  <dd> Searches backwards for the specified object, starting from the 
 specified index, and returns an index to it.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> elem - the desired component.
    <dd> index - the index to start searching from.
    <dt> <b>Returns:</b>
    <dd> the index of the last occurrence of the specified object in this
          vector at position less than <code>index</code> in the vector;
          <code>-1</code> if the object is not found.
  </dl></dd>
</dl>
<a name="elementAt(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="elementAt"><b>elementAt</b></a>
<pre>
 public final synchronized <a href="java.lang.Object.html#_top_">Object</a> elementAt(int index)
</pre>
<dl>
  <dd> Returns the component at the specified index.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> index - an index into this vector.
    <dt> <b>Returns:</b>
    <dd> the component at the specified index.
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> if an invalid index was
               given.
  </dl></dd>
</dl>
<a name="firstElement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="firstElement"><b>firstElement</b></a>
<pre>
 public final synchronized <a href="java.lang.Object.html#_top_">Object</a> firstElement()
</pre>
<dl>
  <dd> Returns the first component of this vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the first component of this vector.
    <dt> <b>Throws:</b> <a href="java.util.NoSuchElementException.html#_top_">NoSuchElementException</a>
    <dd> if this vector has no components.
  </dl></dd>
</dl>
<a name="lastElement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="lastElement"><b>lastElement</b></a>
<pre>
 public final synchronized <a href="java.lang.Object.html#_top_">Object</a> lastElement()
</pre>
<dl>
  <dd> Returns the last component of the vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the last component of the vector, i.e., the component at index
          <code>size()&nbsp;-&nbsp;1</code>.
    <dt> <b>Throws:</b> <a href="java.util.NoSuchElementException.html#_top_">NoSuchElementException</a>
    <dd> if this vector is empty.
  </dl></dd>
</dl>
<a name="setElementAt(java.lang.Object, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setElementAt"><b>setElementAt</b></a>
<pre>
 public final synchronized void setElementAt(<a href="java.lang.Object.html#_top_">Object</a> obj,
                                             int index)
</pre>
<dl>
  <dd> Sets the component at the specified <code>index</code> of this 
 vector to be the specified object. The previous component at that 
 position is discarded. 
 <p>
 The index must be a value greater than or equal to <code>0</code> 
 and less than the current size of the vector.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - what the component is to be set to.
    <dd> index - the specified index.
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> if the index was invalid.
    <dt> <b>See Also:</b>
    <dd> <a href="#size()">size</a>
  </dl></dd>
</dl>
<a name="removeElementAt(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeElementAt"><b>removeElementAt</b></a>
<pre>
 public final synchronized void removeElementAt(int index)
</pre>
<dl>
  <dd> Deletes the component at the specified index. Each component in 
 this vector with an index greater or equal to the specified 
 <code>index</code> is shifted downward to have an index one 
 smaller than the value it had previously. 
 <p>
 The index must be a value greater than or equal to <code>0</code> 
 and less than the current size of the vector.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> index - the index of the object to remove.
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> if the index was invalid.
    <dt> <b>See Also:</b>
    <dd> <a href="#size()">size</a>
  </dl></dd>
</dl>
<a name="insertElementAt(java.lang.Object, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="insertElementAt"><b>insertElementAt</b></a>
<pre>
 public final synchronized void insertElementAt(<a href="java.lang.Object.html#_top_">Object</a> obj,
                                                int index)
</pre>
<dl>
  <dd> Inserts the specified object as a component in this vector at the 
 specified <code>index</code>. Each component in this vector with 
 an index greater or equal to the specified <code>index</code> is 
 shifted upward to have an index one greater than the value it had 
 previously. 
 <p>
 The index must be a value greater than or equal to <code>0</code> 
 and less than or equal to the current size of the vector.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the component to insert.
    <dd> index - where to insert the new component.
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> if the index was invalid.
    <dt> <b>See Also:</b>
    <dd> <a href="#size()">size</a>
  </dl></dd>
</dl>
<a name="addElement(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addElement"><b>addElement</b></a>
<pre>
 public final synchronized void addElement(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Adds the specified component to the end of this vector, 
 increasing its size by one. The capacity of this vector is 
 increased if its size becomes greater than its capacity.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the component to be added.
  </dl></dd>
</dl>
<a name="removeElement(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeElement"><b>removeElement</b></a>
<pre>
 public final synchronized boolean removeElement(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Removes the first occurrence of the argument from this vector. If 
 the object is found in this vector, each component in the vector 
 with an index greater or equal to the object's index is shifted 
 downward to have an index one smaller than the value it had previously.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the component to be removed.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the argument was a component of this
          vector; <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="removeAllElements()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeAllElements"><b>removeAllElements</b></a>
<pre>
 public final synchronized void removeAllElements()
</pre>
<dl>
  <dd> Removes all components from this vector and sets its size to zero.
<p>
</dl>
<a name="clone()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clone"><b>clone</b></a>
<pre>
 public synchronized <a href="java.lang.Object.html#_top_">Object</a> clone()
</pre>
<dl>
  <dd> Returns a clone of this vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a clone of this vector.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#clone()">clone</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public final synchronized <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns a string representation of this vector.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string representation of this vector.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.TimeZone.html#_top_">Previous</a>  <a href="Package-java.util.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
