elemental.util.

Interface CanCompareInt

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      int compare(int a, int b)

      Compares its two arguments for order.

    • Method Detail

      • compare

        int compare(int a,
                    int b)

        Compares its two arguments for order.

        Parameters:

        a - the first integer to be compared

        b - the second integer to be compared

        Returns:

        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second