protected class Map.CompareOrder extends java.lang.Object implements Comparator
Modifier | Constructor and Description |
---|---|
protected |
CompareOrder() |
Modifier and Type | Method and Description |
---|---|
int |
compare(int a,
int b)
Compares its two arguments for order.
|
public final int compare(int a, int b)
Comparator
compare
in interface Comparator
a
- the first integer to be compared.b
- the second integer to be compared.