Hullaballoonatic09/11/2018, 10:39 PM
Taras Koshkin09/11/2018, 11:01 PM
just compares if the object reference is the same which isn't really that useful, so you have to override
so that it compares if the values inside are the same or not. It's also used in Collections a lot. Most IDEs come with
generators. Also Kotlin's data classes implement these by default, so for those you don't need to override.
Sam09/11/2018, 11:25 PM