Ali Khaleqi Yekta
05/28/2022, 6:25 PMRob Elliot
05/28/2022, 7:45 PMRob Elliot
05/28/2022, 7:46 PMephemient
05/28/2022, 8:40 PM.equals(), which is == in Kotlin (except for NaN which we'll ignore here)), then they must have the same hashCode(). this implies the contrapositive (if two instances have different hashCode() then they must not be ==), but does not imply the converse: it is allowed for two instances to have the same hashCode() but be !=ephemient
05/28/2022, 8:42 PMhashCode() can be returned by !== instances (I'm just clarifying that it must be, for == instances)