https://kotlinlang.org logo
#codereview
Title
# codereview
k

kotlin_questions

08/11/2018, 4:02 PM
But i could also do this on a Note level instead of a field level what would be a good design here?
r

rook

08/14/2018, 2:56 PM
Hey man, this is a Kotlin specific Slack workspace, so your question, being based in Java, is very off-topic.
k

kotlin_questions

08/15/2018, 8:17 AM
why did u get the impression that this is not kotlin?
r

rook

08/15/2018, 2:36 PM
The code snippet you posted is not Kotlin. It’s Java. In Kotlin, your snippet would look like this:
Copy code
class Field(val title: String, val value: String){
  val id = Util.UUID4()
  val properties = HashSet<String>()
}
5 Views