Interface IntList.IntComparator

Enclosing class:
IntList

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

    Modifier and Type
    Method
    Description
    int
    compare(int first, int second)
    Compares the two int arguments for order.
  • Method Details

    • 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