edu.wpi.first.wpilibj.util
Class SortedVector
java.lang.Object
   java.util.Vector
java.util.Vector
       edu.wpi.first.wpilibj.util.SortedVector
edu.wpi.first.wpilibj.util.SortedVector
- public class SortedVector 
- extends Vector
- Author:
- dtjones
| Nested Class Summary | 
| static interface | SortedVector.ComparatorInterface used to determine the order to place sorted objects.
 | 
 
 
 
 
| Method Summary | 
|  void | addElement(Object element)Adds an element in the Vector, sorted from greatest to least.
 | 
|  void | sort()Sort the vector.
 | 
 
| Methods inherited from class java.util.Vector | 
| capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize | 
 
 
SortedVector
public SortedVector(SortedVector.Comparator comparator)
- Create a new sorted vector and use the given comparator to determine order.
 
- Parameters:
- comparator- The comparator to use to determine what order to place
 the elements in this vector.
 
addElement
public void addElement(Object element)
- Adds an element in the Vector, sorted from greatest to least.
 
- 
- Overrides:
- addElementin class- Vector
 
- 
- Parameters:
- element- The element to add to the Vector
 
sort
public void sort()
- Sort the vector.
 
- 
 
"For updated information see the Java FRC site"