아이템 11. equals를 재정의하려거든 hashCode도 재정의하라
tidavid1 opened this issue · comments
KyungMin Lee commented
KyungMin Lee commented
왜 인텔리제이에서 hashCode를 재정의하면 31을 곱할까에 대한 의문에 대해서 시프트 연산과 소수라는 해답을 던져준 명쾌한 아이템이다.
📔 이펙티브 자바 스터디 저장소
tidavid1 opened this issue · comments
왜 인텔리제이에서 hashCode를 재정의하면 31을 곱할까에 대한 의문에 대해서 시프트 연산과 소수라는 해답을 던져준 명쾌한 아이템이다.