dumptruckman
02/07/2019, 6:05 PMdumptruckman
02/07/2019, 9:40 PMjw
02/07/2019, 9:42 PMjw
02/07/2019, 9:43 PMjw
02/07/2019, 9:43 PMjw
02/07/2019, 9:43 PMhdarritchon
03/22/2019, 3:45 PMAdam Kirk
03/22/2019, 3:52 PMKirill Zhukov
03/22/2019, 10:57 PMBigDecimal#intValue()
is not accessible from Kotlin? 🤔Davide Giuseppe Farella
03/23/2019, 4:59 PMtypealias
on a lambda:
typealias ErrorStateGenerator = ErrorStateFactory.(Throwable) -> ViewState.Error
ErrorStateFactory
provides a default
val.
This is a typical use case:
ViewStateStoreConfig.errorStateGenerator = {
when( it ) {
is NullPointerException -> NPError( it )
is IllegalArgumentException -> IAError( it )
else -> default
}
}
I was wondering a common scenario where the user only got some dependencies ( exceptions ) in certain modules, so this would be helpful:
ViewStateStoreConfig.errorStateGenerator =
generatorFromThisModule + generatorFromModule2 + generatorFromModule3
So I would need a class for wraps the `ErrorStateGenerator`s; this class should extend ErrorStateGenerator
itself, but is not possible since ErrorStateGenerator
is an extension function…
Which solution would you suggest?Davide Giuseppe Farella
03/23/2019, 5:01 PMDavide Giuseppe Farella
03/23/2019, 5:25 PMsitepodmatt
03/25/2019, 2:16 AMjuliocbcotta
03/25/2019, 5:33 AMvalueOf
to get a reference of a enum entry from a string. As I don't know which enum to look at I would have to go through all implementations or use something like "$EnumClass.$EnumEntry" string. Maybe I can use some reflection? Any ideas?Jan Gerling
03/25/2019, 11:07 AMstandinga
03/25/2019, 1:16 PMstandinga
03/25/2019, 1:17 PMrook
03/25/2019, 4:09 PMkarelpeeters
03/25/2019, 4:10 PMfilterIsInstance<First>()
rook
03/25/2019, 4:10 PMwck
03/26/2019, 4:28 AMwck
03/26/2019, 4:28 AM<https://android.googlesource.com/platform/art/+/6027871fa3bb32f01ee2f1560e1967d986871c18/runtime/class_linker.cc>
in FindPrimitiveClass
the class descriptor indicate it is a primitive type but in reality it is not. How is this possible?
Posted in #androidKompass
03/26/2019, 5:38 AMuser
03/26/2019, 7:23 AMHamachi
03/26/2019, 10:41 AMHamachi
03/26/2019, 10:42 AMSebastian Krajewski
03/26/2019, 6:57 PMjw
03/26/2019, 6:59 PMcheck(!disposed) { "Can't bind disposed VBO" }
check(!isBound) { "VBO is already bound" }
Sebastian Krajewski
03/26/2019, 7:09 PM