We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
elemental.util.
Interface CanCompareNumber
-
public interface CanCompareNumber
A comparison function which imposes total ordering on a set of numbers.
See Also:
-
-
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 comparedb
- the second number to be comparedReturns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second
-
-