Class 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.

Pete Wyckoff
See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
Constructor Summary
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


public VectorWithEquals()


public VectorWithEquals(int initialCapacity)


public VectorWithEquals(int initialCapacity,
                        int capacityIncrement)
Method Detail


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