|
|||||||||
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 | +--atropos.util.OrderedList
This class replaces TreeSet in the previous AVNMP version. This makes it easily portable to the PC J++ environment which does not have full Sun compatability. This class requires that the Comparator inteface be implemented which in our casee just means that a compare() method must be defined. This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
OrderedList()
|
Method Summary | |
boolean |
add(java.lang.Object o)
Keep the Vector ordered as elements are added. |
void |
clear()
|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
java.lang.Object |
get(int i)
|
java.lang.Object |
remove(int i)
|
Methods inherited from class java.util.Vector |
add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, 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 OrderedList()
Method Detail |
public boolean add(java.lang.Object o)
add
in class java.util.Vector
public int compare(java.lang.Object o1, java.lang.Object o2)
public void clear()
clear
in class java.util.Vector
public java.lang.Object get(int i)
get
in class java.util.Vector
public java.lang.Object remove(int i)
remove
in class java.util.Vector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |