Is hashCode() in Java records cached?
Many times during my talks covering Java records I was asked if the result of
hashCode()
of a record is cached. Let’s see ;-)
hashCode()
of a record is cached. Let’s see ;-)
equals()
and hashCode()
”. What if I told you this might not be always true…?