To judge whether the object is equal