Created
October 22, 2017 16:54
-
-
Save AlexeySoshin/8553c2ca0e4443ed121df738728176d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// No need for setters getters for a simple POJO | |
data class Cat(var id : UUID? = null, | |
val name: String, | |
val age: Float, | |
val weight: Float, | |
var sex : Cat.Sex = Sex.Unknown) { | |
enum class Sex { | |
Unknown, | |
Male, | |
Female, | |
NonBinary | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment