|
|||||||||
| 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
org.jscience.chemistry.gui.extended.molecule.BondVector
public class BondVector
Tripos BondVector class
Bond,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
BondVector()
Default constructor |
|
BondVector(BondVector bv)
Copy constructor. |
|
BondVector(int cap)
Capacity constructor |
|
BondVector(int cap,
int inc)
Capacity & increment constructor |
|
| Method Summary | |
|---|---|
void |
append(Bond a)
Append a bond to the end of vector |
boolean |
equals(BondVector av)
Compares this BondVector with another |
Bond |
firstBond()
Returns first bond in BondVector |
Bond |
getBond(int i)
Returns bond at specified index |
void |
insert(Bond a,
int i)
Insert a bond at specified index; other bonds are shifted over |
Bond |
lastBond()
Returns last bond in BondVector |
boolean |
removeBond(Bond a)
Remove a bond; other bonds are shifted down |
void |
removeBond(int i)
Remove bond at specified index; other bonds are shifted down |
void |
set(Bond a,
int i)
Set a bond at specified index; bond at index is replaced |
| 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 BondVector()
public BondVector(int cap)
cap - initial capacity of vector
public BondVector(int cap,
int inc)
cap - initial capacity of vectorinc - increment factorpublic BondVector(BondVector bv)
bv - BondVector to be copied| Method Detail |
|---|
public final void append(Bond a)
a - bond to be appended
public final Bond getBond(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - DOCUMENT ME!
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final void set(Bond a,
int i)
a - bond to be seti - index to place bond
public final void insert(Bond a,
int i)
a - bond to be insertedi - index of insertionpublic final boolean removeBond(Bond a)
a - bond to be removed
public final void removeBond(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - index of bond
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final Bond firstBond()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if size() == 0
public final Bond lastBond()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if size() == 0public boolean equals(BondVector av)
av - BondVector to compare with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||