Interface IntList.IntComparator

  • Enclosing class:
    IntList

    public static interface IntList.IntComparator
    A comparator of primitive ints.
    Since:
    6.6
    • Method Detail

      • compare

        int compare​(int first,
                    int second)
        Compares the two int arguments for order.
        Parameters:
        first - the first int to compare
        second - the second int to compare
        Returns:
        a negative number if first < second, 0 if first == second, or a positive number if first > second