Checks for equality.
true if obj represents the same pair of states as this pair
obj
object to compare with