compare


Description:

public abstract int compare (Comparable? other)

Compare whether two objects represent the same thing.

The return value can also be used to sort the objects.

Parameters:

this

The comparable object

other

Another comparable object

Returns:

Zero if the two objects represent the same thing, non-zero if not.