|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector org.paneris.util.JoinVector org.paneris.util.UniqueVector
public class UniqueVector
This extends a vector, it has an additional method that simply prevents duplicate values being put into it.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
UniqueVector()
constructor |
|
UniqueVector(int initialCapacity)
constructor with an initial capacity |
|
UniqueVector(int initialCapacity,
int capacityIncrement)
constructor with an initial capacity and a capacity increment |
Method Summary | |
---|---|
boolean |
addUniqueElement(java.lang.Object obj)
add an element to the vector, but only if it is not already there |
Methods inherited from class org.paneris.util.JoinVector |
---|
join |
Methods inherited from class java.util.Vector |
---|
add, 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 UniqueVector()
public UniqueVector(int initialCapacity)
public UniqueVector(int initialCapacity, int capacityIncrement)
Method Detail |
---|
public boolean addUniqueElement(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |