Interface SortedVector.Comparator

  • Enclosing class:
    SortedVector<E>

    public static interface SortedVector.Comparator
    Interface used to determine the order to place sorted objects.
    • Method Detail

      • compare

        int compare​(Object object1,
                    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.