dumptruckman
02/08/2019, 3:43 PMprivate set
on a var in the constructor?dumptruckman
02/08/2019, 4:07 PMinternal abstract val from: String?
is generated in java as public String getFrom$email_service()
?dumptruckman
02/08/2019, 4:08 PMdumptruckman
02/08/2019, 4:08 PMdumptruckman
02/08/2019, 4:11 PMdiesieben07
02/08/2019, 4:13 PM@JvmName
dumptruckman
02/08/2019, 4:13 PMdumptruckman
02/08/2019, 4:13 PM@get:JvmName("getFrom")
Shawn
02/08/2019, 4:14 PMinternal
thoughdumptruckman
02/08/2019, 4:14 PMShawn
02/08/2019, 4:14 PMdumptruckman
02/08/2019, 4:15 PMShawn
02/08/2019, 4:15 PMinternal
isn’t a 1:1 replacement for “package-private”, unfortunatelydumptruckman
02/08/2019, 4:15 PMdumptruckman
02/08/2019, 4:15 PMdumptruckman
02/08/2019, 4:15 PMpoohbar
03/19/2019, 5:45 PMclass Wrapper<R>(
private val instance: R? = null
) {
fun simpleName() = instance::class.simpleName // error on this line
}
I cant fix the compiler error .. adding !!
does not seem to helpxenoterracide
03/19/2019, 7:48 PMstanislav
03/20/2019, 2:23 PMamanda.hinchman-dominguez
03/20/2019, 3:09 PMVinicius Carvalho
03/20/2019, 4:44 PMgroupBy
on one of my collections and I noticed it maps to Map<K,V>, in my case the keys are always Ints, but I can't call toSortedMap()
because the function expects <K : Comparable<K>>
which is the case in my usage, but I can't call the extension functionVinicius Carvalho
03/20/2019, 4:46 PMliminal
03/21/2019, 12:41 AMfooOrNull(): Foo?
vs foo(): Foo?
. Is there a convention?aoriani
03/21/2019, 12:59 AMaoriani
03/21/2019, 1:00 AMShawn
03/21/2019, 1:01 AMxOrNull()
exists when there’s a similar x()
method that throws when something is missing or otherwise goes wrongShawn
03/21/2019, 1:01 AMString.toInt(): Int
and String.toIntOrNull(): Int?
and other similar instancesSola
03/21/2019, 9:17 AMDavid Cuesta
03/21/2019, 12:53 PMPaul Woitaschek
03/21/2019, 3:01 PM