smRt-Egg / book-effective-java-study

📔 이펙티브 자바 스터디 저장소

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

아이템 11. equals를 재정의하려거든 hashCode도 재정의하라

tidavid1 opened this issue · comments

왜 인텔리제이에서 hashCode를 재정의하면 31을 곱할까에 대한 의문에 대해서 시프트 연산과 소수라는 해답을 던져준 명쾌한 아이템이다.