edu.wpi.first.wpilibj.util

## Interface SortedVector.Comparator

- Enclosing class:
    SortedVector<E>

      public static interface SortedVector.Comparator

  Interface used to determine the order to place sorted objects.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(java.lang.Object object1, java.lang.Object object2)` Compare the given two objects.

- - ### Method Detail

    - #### compare

          int compare(java.lang.Object object1,
                      java.lang.Object object2)

      Compare the given two objects.

      Should return -1, 0, or 1 if the first object is less than, equal to, or greater than the second, respectively.

      Parameters:
        `object1` - First object to compare
        `object2` - Second object to compare
      Returns:
        -1, 0, or 1.