pqbyte
07/14/2016, 7:25 AMdata class HelloWorld(val someValue: String) {
val name: String = "foo"
get() = field.toUpperCase()
}
mathiasbn
07/14/2016, 7:40 AMCan I implement that with a property somehow?
(something like this non-compiling:
class SomeClass(override val string:String) :SomeInterface
```dirk.dittert
07/14/2016, 7:46 AMmathiasbn
07/14/2016, 8:10 AMhoang
07/14/2016, 10:52 AMhoang
07/14/2016, 10:52 AM: Serializable
hoang
07/14/2016, 10:54 AMhoang
07/14/2016, 10:55 AM//Java
@Entity
@Table(uniqueConstraints={
@UniqueConstraint(columnNames = {"productId", "serial"})
})
public class InventoryItem {
...
}
yole
07/14/2016, 10:55 AMarrayOf(“productId”, “serial”)
hoang
07/14/2016, 10:55 AMyole
07/14/2016, 10:56 AMhoang
07/14/2016, 10:59 AMhoang
07/14/2016, 11:00 AM@Entity
@Table(uniqueConstraints = arrayOf(
UniqueConstraint(columnNames = arrayOf("productId", "serial"))
))
public class InventoryItem {
val productId: Int = 0
val serial: String = ""
}
bryan
07/14/2016, 8:00 PMjoseph_ivie
07/14/2016, 8:02 PMsomething.javaClass
. Then you could use equals to determine if they are the same. Is that what you are looking for?bryan
07/14/2016, 8:07 PMjoseph_ivie
07/14/2016, 8:09 PMabe
07/15/2016, 1:38 AMhashMapOf(*list.toTypedArray())` - 1:34 PM
*
does what in this context?cedric
07/15/2016, 1:54 AMean5533
07/15/2016, 3:39 AMhoang
07/15/2016, 10:28 AMdata class MyModel (val name: String, val age: Int) : Serializable {
private val serialVersionUID = 0L
}
voddan
07/15/2016, 10:38 AMvoddan
07/15/2016, 10:39 AMdeutronomium
07/15/2016, 10:39 AMdeutronomium
07/15/2016, 10:39 AMdeutronomium
07/15/2016, 10:39 AMvoddan
07/15/2016, 10:41 AMvoddan
07/15/2016, 10:42 AM