Interface IntComparator


public interface IntComparator
Compare two integers.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(int i, int j)
    Compare two ints.
  • Method Details

    • 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.