Size: a a a

Kotlin Community

2020 March 05

AM

Andrew Mikhaylov in Kotlin Community
JsonParametricSerializer -- 🎉🎉🎉
источник

DZ

Dmitriy Zhirnov in Kotlin Community
Аа, отделили, вот оно что. Спс
источник

D

Denys in Kotlin Community
А спикеры тут ничего так.
https://kotliners.com/conference/
источник

ТБ

Тимур Бухараев in Kotlin Community
Dmitry 𝔇𝔪𝔦𝔱𝔯𝔶
это же что-то андроидное вроде
Не, это бекенд под jvm, просто мы ktor используем.
источник

ТБ

Тимур Бухараев in Kotlin Community
Sergey λ
Server admin tool?
там R похоже просто имя диска, а не класс ресурсов андроид )
Да, все так )
источник

AN

Alexander Nozik in Kotlin Community
@sandwwraith Вы https://github.com/Kotlin/kotlinx.serialization/issues/378 к релизу-то пофиксите? Это сейчас главная проблема.
источник

VT

Vsevolod Tolstopyatov in Kotlin Community
да, пофиксим
источник

AN

Alexander Nozik in Kotlin Community
Vsevolod Tolstopyatov
да, пофиксим
🙏
источник

AF

Alex F. in Kotlin Community
Всем привет. У меня кейс когда Flow эммиитит данные, и в одном из операторов происходит их сортировка на дефолтном диспатчере.
Не могу никак нормально придумать, как подменять компаратор если пользователь выбрал в UI новый тип сортировки.
источник

M

Mulle➊ne in Kotlin Community
Hello everyone!
источник

M

Mulle➊ne in Kotlin Community
I have a situation on Enums
источник

M

Mulle➊ne in Kotlin Community
My question being:
источник

QH

Quantum Harmonizer in Kotlin Community
Mulle➊ne
Hello everyone!
источник

AL

Alexander Levin in Kotlin Community
Mulle➊ne
Hello everyone!
Hi. Next time please compose your text as a single message. Thanks :)
источник

M

Mulle➊ne in Kotlin Community
Alexander Levin
Hi. Next time please compose your text as a single message. Thanks :)
Thank you, noted.
источник

M

Mi in Kotlin Community
Mulle➊ne
My question being:
So, what's the question?
источник

M

Mulle➊ne in Kotlin Community
Suppose I have two different enum classes that have the same number of fields as well as definitions:
E.g:
enum class EnumA {
Normal,
   Abnormal
}
enum class EnumB {
Normal,
   Abnormal
}

Is there a recommended way of having a single Enum class which holds the (Normal, Abnormal) fields, from which enum classes EnumA and EnumB can reference, instead of having a repetition of defining the same number of fields(order and names)?
источник

AK

Anatolii K in Kotlin Community
So what the problem to drop one of that enums?
источник

AM

Andrew Mikhaylov in Kotlin Community
Из чейнджлога Detekt:
1.7.0 - Upcoming
Notable Changes
* The Gradle plugin should be on par with the CLI performance-wise
источник

t

trashkalmar in Kotlin Community
Mulle➊ne
Suppose I have two different enum classes that have the same number of fields as well as definitions:
E.g:
enum class EnumA {
Normal,
   Abnormal
}
enum class EnumB {
Normal,
   Abnormal
}

Is there a recommended way of having a single Enum class which holds the (Normal, Abnormal) fields, from which enum classes EnumA and EnumB can reference, instead of having a repetition of defining the same number of fields(order and names)?
Have you tried Sealed classes?
источник