|
|||||||||
| 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.AtomVector
public class AtomVector
Tripos AtomVector class
Atom,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
AtomVector()
Default constructor |
|
AtomVector(AtomVector av)
Copy constructor |
|
AtomVector(int cap)
Capacity constructor |
|
AtomVector(int cap,
int inc)
Capacity and increment constructor |
|
| Method Summary | |
|---|---|
void |
append(Atom a)
Append an atom to the end of vector |
boolean |
equals(AtomVector av)
Compares this AtomVector with another |
Atom |
firstAtom()
Returns first atom in AtomVector |
Atom |
getAtom(int i)
Returns atom at specified index |
void |
insert(Atom a,
int i)
Insert an atom at specified index; other atoms are shifted over |
Atom |
lastAtom()
Returns last atom in AtomVector |
void |
removeAllAtoms()
Remove all atoms |
boolean |
removeAtom(Atom a)
Remove an atom; other atoms are shifted down |
void |
removeAtom(int i)
Remove atom at specified index; other atoms are shifted down |
void |
set(Atom a,
int i)
Set an atom at specified index; atom 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 AtomVector()
public AtomVector(int cap)
cap - initial capacity of vector
public AtomVector(int cap,
int inc)
cap - initial capacity of vectorinc - increment factorpublic AtomVector(AtomVector av)
av - AtomVector to be copied| Method Detail |
|---|
public final void append(Atom a)
a - atom to be appended
public final Atom getAtom(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - index of atom
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final void set(Atom a,
int i)
a - atom to be seti - index to place atom
public final void insert(Atom a,
int i)
a - atom to be insertedi - index of insertionpublic final boolean removeAtom(Atom a)
a - atom to be removed
public final void removeAtom(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - index of atom
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final void removeAllAtoms()
throws java.lang.ArrayIndexOutOfBoundsException
i - index of atom
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final Atom firstAtom()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if size() == 0
public final Atom lastAtom()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if size() == 0public boolean equals(AtomVector av)
av - AtomVector to compare with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||