Equality in Kotlin (‘==’, ‘===’ and ‘equals’)

This post was originally posted at https://agrawalsuneet.github.io/blogs/equality-in-kotlin/ and reposted on Medium on 05th Sept 2018.

Structural Equality (‘==’)

Referential equality (‘===’)

.equals method

Please continue reading at https://agrawalsuneet.github.io/blogs/equality-in-kotlin/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store