Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update 01_Data classes.md
  • Loading branch information
thomasKalmar authored Jan 14, 2019
commit 9a2c674ce655f08b772f6670ec6d05fc02694130
2 changes: 1 addition & 1 deletion examples/03_special_classes/01_Data classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ fun main() {
3. Auto-generated `equals` considers two instances equal if all their properties are equal.
4. Equal data class instances have equal `hashCode()`.
5. Auto-generated `copy` function makes it easy to create a new instance.
6. When copying, you can change values of certain properties. `copy` accepts areguments in the same order as the class constructor.
6. When copying, you can change values of certain properties. `copy` accepts arguments in the same order as the class constructor.
7. Use `copy` with named arguments to change the value despite of the properties order.
8. Auto-generated `componentN` functions let you get the values of properties in the order of declaration.