Used to indicate the two objects being compared are both non-nulls.
Compares the two given strings for order, handling null as necessary.
- a negative integer, zero, or a positive integer as the first
object is less than, equal to, or greater than the second object.
Partially compares the two given objects for order, handling null as
- a -1 if the first object is null but not the second, 0 if both
objects are identical, 1 if the second object is null but not the
is returned which means both
objects are non-null but not identical.