Data Class
equals()/hashCode()pair.toString()of the form"User(name=John, age=42)".componentN()functions corresponding to the properties in their order of declaration.copy()function (see below).- Data classes | Kotlin Documentation
Sep 13, 20251 min read
equals()/hashCode() pair.toString() of the form "User(name=John, age=42)".componentN() functions corresponding to the properties in their order of declaration.copy() function (see below).