| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--com.ltu.smd116.misc.SortedVector
This class serves the purpose of List as defined in Java 1.2 AND
also implements the static function for sorting this type of set with
the use of the Comparator interface (i.e. the functionality provided
by the Collections-class).
Creation date: (2/27/2001 4:34:04 PM)
Field Summary | |
(package private) int | iSortColumn |
Fields inherited from class java.util.Vector |
elementData, elementCount, capacityIncrement |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
SortedVector() Constructor |
Method Summary | |
void | addSortedVectorElements(SortedVector v) Add all elements (by references) to this SortedVector. |
private void | quicksort(int left, int right) Sorts this vector using an ExtendedComparator. |
void | setSortColumn(int i) |
void | sort() Sorts the elements in the vector. |
private void | swap(int i, int j) Switch places between objects at 'i' and 'j'. |
Methods inherited from class java.util.Vector |
copyInto, trimToSize, ensureCapacity, setSize, capacity, size, isEmpty, elements, contains, indexOf, indexOf, lastIndexOf, lastIndexOf, elementAt, firstElement, lastElement, setElementAt, removeElementAt, insertElementAt, addElement, removeElement, removeAllElements, clone, toArray, toArray, get, set, add, remove, add, remove, clear, containsAll, addAll, removeAll, retainAll, addAll, equals, hashCode, toString, subList, removeRange |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait, finalize |
Field Detail |
int iSortColumn
Constructor Detail |
public SortedVector()
Method Detail |
public void addSortedVectorElements(SortedVector v)
private void quicksort(int left, int right)
public void setSortColumn(int i)
public void sort()
private void swap(int i, int j)
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |