compareTo
compareTo(Object obj) method
Compares the current instance with another object of the same type.
Parameters
Name | Type | Description |
---|---|---|
obj | Object | An object to compare with this instance. |
Returns
int
Compares the current instance with another object of the same type.
Name | Type | Description |
---|---|---|
obj | Object | An object to compare with this instance. |
int