Improve ListHeader #442

Merged
Isira-Seneviratne merged 2 commits from ListHeader_improvements into devel 2023-08-02 07:06:27 +00:00
Isira-Seneviratne commented 2023-08-01 01:41:30 +00:00 (Migrated from github.com)
No description provided.
Koitharu (Migrated from github.com) reviewed 2023-08-01 08:58:16 +00:00
Isira-Seneviratne (Migrated from github.com) reviewed 2023-08-01 08:59:53 +00:00
Koitharu (Migrated from github.com) reviewed 2023-08-01 09:03:34 +00:00
Isira-Seneviratne (Migrated from github.com) reviewed 2023-08-01 09:06:04 +00:00
Koitharu (Migrated from github.com) reviewed 2023-08-01 09:06:07 +00:00
Koitharu commented 2023-08-01 09:55:00 +00:00 (Migrated from github.com)

So, I converted 10 classes to data and removed manually generated equals/hashCode
Before conversion:
изображение
With data classes:
изображение
The difference is 10 methods
Looks like copy() and componentN() functions are absent, but toString() is present
изображение

So, I think, it is ok to use data classes (ofc, it may consume a bit more time at compilation stage, but this is insignificant), thank you for this

So, I converted 10 classes to `data` and removed manually generated `equals`/`hashCode` Before conversion: ![изображение](https://github.com/KotatsuApp/Kotatsu/assets/8948226/cc616759-dd37-4de5-9590-b311c0ebda3f) With data classes: ![изображение](https://github.com/KotatsuApp/Kotatsu/assets/8948226/a22f10f3-ce13-427f-9872-a1411191450a) The difference is 10 methods Looks like `copy()` and `componentN()` functions are absent, but `toString()` is present ![изображение](https://github.com/KotatsuApp/Kotatsu/assets/8948226/c42c11bf-4863-415d-8601-cf39b914df58) So, I think, it is ok to use `data` classes (ofc, it may consume a bit more time at compilation stage, but this is insignificant), thank you for this
Koitharu (Migrated from github.com) reviewed 2023-08-01 09:59:27 +00:00
Koitharu (Migrated from github.com) approved these changes 2023-08-02 04:41:22 +00:00
Sign in to join this conversation.