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 CanCompareInt
-
public interface CanCompareInt
A comparison function which imposes total ordering on a set of integers.
See Also:
-
-
Method Summary
All Methods Modifier and Type Method 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 comparedb
- the second integer 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
-
-