I’m curious. Is there a compiler plugin that suppo...
# random
c
I’m curious. Is there a compiler plugin that supports automatic generation of
equals
,
hashcode
,
toString
,
copy
, and others? Some things generated by
data class
are not what I want, and even it only generate properties in the primary constructor
At the same time, it should support the exclusion or transformation of code generated by some properties through annotations
m
If you want to change some of the generated functions in a data class you can override them in code. As for properties that’s how it works, and the exclusion is simply done by declaring them outside the constructor https://kotlinlang.org/docs/data-classes.html#properties-declared-in-the-class-body
If you’re looking for an alternative compiler plugin, I don’t know any sorry