|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Comparator
A comparison function, which imposes a total ordering on some collection of integers. Comparators can be passed to a sort method (such as misc.Utils.sort) to allow precise control over the sort order.
Method Summary | |
---|---|
int |
compare(int a,
int b)
Compares its two arguments for order. |
Method Detail |
---|
int compare(int a, int b)
a
- the first integer to be compared.b
- the second integer to be compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |