|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
semorg.sql.util.DistinctVector<E>
public class DistinctVector<E>
This class complies the class Vector
, exclusive the method
add(Object)
is now thread-safe.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DistinctVector()
Creates a DistinctVector . |
|
DistinctVector(Collection<? extends E> collection)
Creates a DistinctVector , which gets initialized with the
elements of the given Collection instance. |
Method Summary | |
---|---|
boolean |
add(E elem)
Appends a new element at the end of a DistinctVector . |
Methods inherited from class java.util.Vector |
---|
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, 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 |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public DistinctVector()
DistinctVector
.
public DistinctVector(Collection<? extends E> collection)
DistinctVector
, which gets initialized with the
elements of the given Collection
instance.
collection
- Collection
instance containing elements to
initialize the new DistinctVector
.Method Detail |
---|
public boolean add(E elem)
DistinctVector
.
add
in interface Collection<E>
add
in interface List<E>
add
in class Vector<E>
Vector.add(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |