Kotlin for Android Developers - Data Class
Android 22 Sep 2018 658Start using Data Class in Java together with it's getters, setters and overridden hashCode() for generating hash, equals() for comparing objects and toString() to returns more human readable form of object.
You will compare the above to the Kotlin's corresponding data class with keywords like: `data` or `val`. Discover JvmOverloads, Builder, Annotations and some more things about becoming Kotlin's developer in no time!
"A data class is a concept not tied to any specific programming language, it’s a pattern that’s convenient enough to most programmers as a simple way to represent, encapsulate and move information ..."
More info
#9th
in TOP Mobile articles
Level
N/A
Author
AndroidPub
For further author's articles please visit the author's website.
https://android.jlelse.eu/