elemental.util.

Interface CanCompareNumber

    • Method Summary

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

      Compares its two arguments for order.

    • Method Detail

      • compare

        int compare(double a,
                    double b)

        Compares its two arguments for order.

        Parameters:

        a - the first number to be compared

        b - the second number 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