All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.util.VectorCollection
java.lang.Object
|
+----com.ibm.beans.util.VectorCollection
- public class VectorCollection
- extends Object
- implements Collection
The VectorCollection class is a Collection class that uses
a java.util.Vector
.
-
VectorCollection()
- Constructs a VectorCollection instance.
-
add(Object)
- Adds the specified element to this collection.
-
contains(Object)
- Determines if an element is a member of this collection.
-
elements()
- Gets an enumeration of the elements in this collection.
-
isEmpty()
- Checks to see if this collection has no elements.
-
remove(Object)
- Removes the first occurrence of the argument from this collection.
-
size()
- Gets the number of elements in this collection.
-
toString()
- Converts this collection to a String.
VectorCollection
public VectorCollection()
- Constructs a VectorCollection instance.
add
public final synchronized void add(Object element)
- Adds the specified element to this collection.
- Parameters:
- element - The element to be added.
remove
public final synchronized boolean remove(Object element)
- Removes the first occurrence of the argument from this collection.
- Parameters:
- element - The element to be removed.
- Returns:
-
true
if the argument was a component in this
collection, false
otherwise.
elements
public final Enumeration elements()
- Gets an enumeration of the elements in this collection.
Use the Enumeration methods on
the returned object to fetch the elements sequentially.
- Returns:
- An enumeration of the components of this collection.
size
public final int size()
- Gets the number of elements in this collection.
- Returns:
- The number of elements in this collection.
isEmpty
public final boolean isEmpty()
- Checks to see if this collection has no elements.
- Returns:
-
true
if this collection is empty;
false
otherwise.
contains
public final boolean contains(Object element)
- Determines if an element is a member of this collection.
- Parameters:
- element - The element to try to find in this collection.
- Returns:
-
true
if the element is a member of this
collection; false
otherwise.
toString
public final synchronized String toString()
- Converts this collection to a String. This method is useful
for debugging.
- Returns:
- A String representation of this collection.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index