madplay.github.io icon indicating copy to clipboard operation
madplay.github.io copied to clipboard

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

Open utterances-bot opened this issue 5 years ago • 2 comments

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

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

utterances-bot avatar Feb 13 '20 06:02 utterances-bot

추이성(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 다 가 맞지 않을까요?

giantim avatar Feb 13 '20 06:02 giantim

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

반영 완료했습니다.

madplay avatar Feb 13 '20 10:02 madplay