Interface IntComparator

    • Method Detail

      • compare

        int compare​(int i,
                    int j)
        Compare two ints.
        Parameters:
        i - first int.
        j - second int.
        Returns:
        -1 if i < j; 1 if i > j; 0 if i == j.