is equality for maps just checking the object refe...
# getting-started
c
is equality for maps just checking the object reference, or is it seeing if they contain the same data
So in the end it's
equals
on the keys and values.
i
In Kotlin:
==
always check for structural equality calling
.equals()
method under the hood
===
always checks for referential equality This is more unified approach, then in Java
k
But of course you still need to look at what
.equals()
does!
1
c
Yeah works, the issue I was having was unrelated. Just worked since the key type was string and the value was a data class