com.ibm.tspaces
Class VectorWithEquals

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.ibm.tspaces.VectorWithEquals

public class VectorWithEquals
extends java.util.Vector

This is the same as the Vector utility class except that equals is performed element be element rather than using pointers. So two of these vectors are equal if they have the same # of elements, and each element in order is equal.

Author:
Pete Wyckoff
See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
VectorWithEquals()
           
VectorWithEquals(int initialCapacity)
           
VectorWithEquals(int initialCapacity, int capacityIncrement)
           
 
Method Summary
 boolean equals(java.lang.Object other_)
          Do equals on the element, rather than the pointer
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorWithEquals

public VectorWithEquals()

VectorWithEquals

public VectorWithEquals(int initialCapacity)

VectorWithEquals

public VectorWithEquals(int initialCapacity,
                        int capacityIncrement)
Method Detail

equals

public boolean equals(java.lang.Object other_)
Do equals on the element, rather than the pointer
Overrides:
equals in class java.util.Vector