int compare ( Object comparator, Object o1, Object o2 )int compare ( Object comparator, Object o1, Object o2 )| Name | Type | Description |
|---|---|---|
comparator | Object | The Comparator object. |
o1 | Object | The first object to be compared. |
o2 | Object | The second object to be compared. |
| Type | Description |
|---|---|
int | A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. |