Provides a method by which implementors can be compared to each other.
Compares this object to the given object of the same type.
obj