- Enclosing class:
- IntList
public static interface IntList.IntComparator
A comparator of primitive ints.
- Since:
- 6.6
-
Method Summary
Modifier and TypeMethodDescriptionintcompare(int first, int second) Compares the two int arguments for order.
-
Method Details
-
compare
int compare(int first, int second) Compares the two int arguments for order.- Parameters:
first- the first int to comparesecond- the second int to compare- Returns:
- a negative number if first < second, 0 if first == second, or a positive number if first > second
-