dumptruckman
02/07/2019, 4:19 PMdumptruckman
02/07/2019, 4:20 PMdumptruckman
02/07/2019, 4:20 PMadam-mcneilly
02/07/2019, 4:20 PMdumptruckman
02/07/2019, 4:20 PMdumptruckman
02/07/2019, 4:21 PMShawn
02/07/2019, 4:23 PM@JvmField
, though I’m not entirely sure that’d help you in this specific case 😅tddmonkey
02/07/2019, 4:24 PMdumptruckman
02/07/2019, 4:24 PMinline class Recipient (val recipients: MutableList<String>) {
constructor(recipient: String) : this(recipient.split(";").toMutableList())
}
dumptruckman
02/07/2019, 4:26 PMShawn
02/07/2019, 4:27 PMamadeu01
04/05/2019, 8:34 PMlouiscad
04/05/2019, 9:06 PMmapNotNull
, but you probably found it anywaythiagoretondar
04/05/2019, 9:51 PMJoeHegarty
04/05/2019, 10:20 PM<T> T doSomething(Class<T> type)
and I want to pass a type that is an array of Class (or an array of any other generic type). I can use a raw type and do doSomething(Class[].class)
in Java.
But calling from Kotlin, I can't do doSomething(Array<Class<*>>::class.java)
or doSomething(Array<Class<Any>>::class.java)
or doSomething(Array<Class>::class.java)
Output is: Kotlin: Only classes are allowed on the left hand side of a class literal
which makes sense to me, but I don't control the underlying library.
Any ideas on how I can call that Java method? It's a hot code path so avoiding allocation ideally.bjonnh
04/05/2019, 10:26 PMbjonnh
04/05/2019, 10:43 PMbombe
04/06/2019, 12:09 PMbombe
04/06/2019, 12:10 PMRobert Jaros
04/07/2019, 8:33 PMNavrocky Vlad
04/08/2019, 10:24 AMNavrocky Vlad
04/08/2019, 10:25 AMGeert
04/08/2019, 12:01 PMNikky
04/08/2019, 2:41 PMsuspend fun
?kd
04/08/2019, 5:51 PMkarelpeeters
04/08/2019, 5:52 PMfun something(callback: (Int) -> Unit)
serebit
04/09/2019, 1:02 AMfangzhzh
04/09/2019, 1:35 AMobject CONST {
const val SERVER_URL = "<https://storage.googleapis.com/>"
}
object CONFIG {
const val CONFIG_NAME = "name"
}
Is it a good practice in kotlin? if not, do we have other better ways to define static public const ?dmcg
04/09/2019, 6:17 PM$receiver
as Document)` but then says that $receiver is undefined.