Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.