v79
01/21/2022, 9:20 PMget()
method? I have two different objects with the same values, and an overridden equals method which returns true. But as a key to hashmap, they don't match.Joffrey
01/21/2022, 9:24 PMhashCode()
accordingly? 2 equal objects must have the same hashcode, that's the contract between both methods. Hashmaps rely on this by first checking hashcode and then using equals when searching for keysv79
01/21/2022, 9:25 PMv79
01/21/2022, 9:42 PMJoffrey
01/21/2022, 10:11 PMv79
01/21/2022, 10:24 PMJoffrey
01/21/2022, 11:45 PMephemient
01/22/2022, 9:13 AM@Transient
or some other annotation to exclude a property from the auto-generated equals and hashCode (but that's clearly not what we have now)