|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
org.jcsp.nxt.util.VectorSet
public class VectorSet
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
VectorSet()
|
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Adds the specified element to this set if it is not already present. |
void |
addElement(java.lang.Object o)
Deprecated. Method does not do anything; use add instead. |
boolean |
contains(java.lang.Object o)
Returns true if this set contains the specified element. |
boolean |
insert(java.lang.Object o,
int index)
Adds the specified element to this set, at the specified position, if it is not already present. |
void |
insertElementAt(java.lang.Object o,
int index)
Deprecated. Method does not do anything; use insert instead. |
void |
setElementAt(java.lang.Object o,
int index)
Deprecated. Method does not do anything; use a combination of removeElementAt
and insert instead. |
| Methods inherited from class java.util.Vector |
|---|
add, addAll, addAll, capacity, clear, clone, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, 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 VectorSet()
| Method Detail |
|---|
public boolean contains(java.lang.Object o)
true if this set contains the specified element.
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class java.util.Vectoro - element whose presence in this set is to be tested.public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.Vectoro - element to be added to this set.
true if the set did not already contain the specified element.
public boolean insert(java.lang.Object o,
int index)
o - element to be added to this set.index - position of the element.
true if the set did not already contain the specified element.public void addElement(java.lang.Object o)
add instead.
addElement in class java.util.Vector
public void setElementAt(java.lang.Object o,
int index)
removeElementAt
and insert instead.
setElementAt in class java.util.Vector
public void insertElementAt(java.lang.Object o,
int index)
insert instead.
insertElementAt in class java.util.Vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||