When hashCodes Collide: Overriding hashCode() and equals()
We’ve seen these guys around before (the hashCode and equals methods). We know they are important. In fact, we’ve heard that there is some soft of “contract” we’re supposed to uphold if we override them. So what does it all mean? Let’s take a quick look…