|
|||||||||
| 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.RingVector
public class RingVector
Tripos RingVector class
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RingVector()
Default constructor |
|
RingVector(int cap)
Capacity constructor |
|
RingVector(int cap,
int inc)
Capacity & increment constructor |
|
RingVector(RingVector rv)
Copy constructor. |
|
| Method Summary | |
|---|---|
void |
append(Ring r)
Append a ring to the end of vector |
boolean |
equals(RingVector rv)
Compares this RingVector with another |
Ring |
firstRing()
Returns first ring in RingVector |
Ring |
getRing(int i)
Returns ring at specified index |
void |
insert(Ring r,
int i)
Insert a ring at specified index; other rings are shifted over |
Ring |
lastRing()
Returns last ring in RingVector |
boolean |
remove(Ring r)
Remove a ring; other rings are shifted down |
void |
removeRing(int i)
Remove ring at specified index; other rings are shifted down |
void |
set(Ring r,
int i)
Set a ring at specified index; ring 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 RingVector()
public RingVector(int cap)
cap - initial capacity of vector
public RingVector(int cap,
int inc)
cap - initial capacity of vectorinc - increment factorpublic RingVector(RingVector rv)
rv - RingVector to be copied| Method Detail |
|---|
public final void append(Ring r)
r - ring to be appended
public final Ring getRing(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - DOCUMENT ME!
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final void set(Ring r,
int i)
r - ring to be seti - index to place ring
public final void insert(Ring r,
int i)
r - ring to be insertedi - index of insertionpublic final boolean remove(Ring r)
r - ring to be removed
public final void removeRing(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - index of ring
java.lang.ArrayIndexOutOfBoundsException - if index >= capacity()
public final Ring firstRing()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if size() == 0
public final Ring lastRing()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if size() == 0public boolean equals(RingVector rv)
rv - RingVector to compare with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||