Because if this == o
it means that both this
and o
are actually the same object, so they are equal by definition and there's no need for further comparisons.
↧
Answer by Federico klez Culloca for why override java's equals() method this way?
↧