madplay / madplay.github.io

오늘도 MadPlay!
https://madplay.github.io
MIT License
18 stars 2 forks source link

[이펙티브 자바 3판] 아이템 10. equals는 일반 규약을 지켜 재정의하라 #94

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

[이펙티브 자바 3판] 아이템 10. equals는 일반 규약을 지켜 재정의하라 - MadPlay's MadLife.

https://madplay.github.io/post/obey-the-general-contract-when-overriding-equals

giantim commented 4 years ago

추이성(transitivity) : null이 아닌 모든 참조 값 x, y, z에 대해 x.equals(y)가 true면, y.equals(x)도 true다. -> null이 아닌 모든 참조 값 x, y, z에 대해 x.equals(y) 가 true 이고 y.equals(z) 가 true 이면 x.equals(z) 도 true 다 가 맞지 않을까요?

madplay commented 4 years ago

앗! 맞습니다. 제보 감사합니다 :D

반영 완료했습니다.