Slackbot
02/22/2020, 8:59 PMDavid Whittaker
02/23/2020, 1:55 AMfarzad
02/23/2020, 9:23 AMRodrigo Silva
02/23/2020, 1:03 PMearroyoron
02/23/2020, 9:21 PMaaverin
02/24/2020, 11:25 AMMarc Knaup
02/24/2020, 12:14 PMUser::
over and over again? 🤔elect
02/24/2020, 6:40 PMRobert Jaros
02/24/2020, 10:51 PMEllen Spertus
02/24/2020, 11:01 PMvalues: mutableMapOf<String, List<String>
. Is there a better way of adding items to it than:
values[key] = (values[key] ?: emptyList()) + value
My API level is to low for getOrDefault()
.Isaac Castillo
02/25/2020, 2:14 AMtim
02/25/2020, 12:41 PMMatej Drobnič
02/25/2020, 1:04 PM.indices
just because it would create additional objects for very slightly better syntax. However, it appears that it does NOT create any new objects, but I cannot find any documentation about that.Artyom Gornostayev
02/25/2020, 4:04 PMpublic abstract class NumberExpression<T extends Number & Comparable<?>> extends ...
I've tried to do this (expression as NumberExpression).goe(value)
, but this does not work.
I know, this is not a good practice, just to know... 🙂Tmpod
02/25/2020, 6:53 PM1.3.70-eap-274
everywhereSergey Chelombitko
02/25/2020, 7:12 PMwarningsAsErrors
but keep deprecated API usage as a warningKotlinIsMyFav
02/25/2020, 10:26 PMAlexey Anufriev
02/25/2020, 10:34 PMto
inside TuplesKt.class
there is also to
method
and in practice when I test the DSL my method is not resolved but the one from stdlib
how ot overcome this?Alexey Anufriev
02/26/2020, 8:39 AMkotlin-maven-plugin
first and the maven-compiler-plugin
but what if I have in Java annotation processing that is generating some source files, how can I call those from Kotlin?ahulyk
02/26/2020, 9:01 AMinline
classes in kotlin:
java interface
public interface ItemClickListener { //java interface
void onClick(CollectionData collectionData);
}
kotlin data class
inline class CollectionData(val collectionName: String)
call from kotlin code
private fun setListener() {
listener = ItemClickListener { }
}
Error in runtime:
java.lang.NoSuchMethodError: No interface method onClick-GwgtRiE(Ljava/lang/String;)V in class LItemClickListener; or its super classes (declaration of 'ItemClickListener' appears in /data/app/packagename-Uswa6bR60ndbc7IFGkEVCw==/base.apk!classes2.dex)
Stephan Schroeder
02/26/2020, 10:12 AMfun main() {
val r1 = Retailer(name = "test")
val r2 = Retailer(name by lazy{"test"})
}
data class Retailer(
val name: String
)
Playground link: https://pl.kotl.in/qfUC7UzcjLastExceed
02/26/2020, 1:32 PMVinicius Araujo
02/26/2020, 6:00 PMJoan Colmenero
02/26/2020, 8:23 PMinterface BaseInterface<F,I> {
fun example(foo: F, params: I? = null)
}
I want to add params but as a generic on a method is there any idiomatic way to do it?
But I do not want to declare it for every classes that implements this AnInterfaceJoan Colmenero
02/26/2020, 8:32 PMinterface BaseInterface<F> {
fun example(foo:F)
}
interface Feature1 : BaseInterface<myFoo : Foo> {
fun example2(myFoo : Foo, param: String) { example(foo) }
}
but then can I implement other stuff calling example2?darkmoon_uk
02/27/2020, 12:42 PMLeon K
02/27/2020, 1:33 PMProcess
that gives me both inputStream
and errorStream
(stdout
and stderr
respectively), and I need to log the output's of both as soon as they come in. what's the best way to handle that? I guess just doing inputStream.bufferedReader().forEachLine {...}
would block and thus not allow stderr to be handled, thus blocking the process
Any ideas?LastExceed
02/27/2020, 4:37 PMLong
to ByteArray
? I found some solutions on StackOverflow ect but they are pretty messysnowe
02/27/2020, 5:21 PMLastExceed
02/27/2020, 6:19 PMLastExceed
02/27/2020, 6:19 PMShawn
02/27/2020, 6:21 PMLastExceed
02/27/2020, 6:22 PMShawn
02/27/2020, 6:23 PMBrian Dilley
02/27/2020, 6:23 PMShawn
02/27/2020, 6:23 PMBrian Dilley
02/27/2020, 6:23 PMShawn
02/27/2020, 6:24 PMLastExceed
02/27/2020, 6:24 PMBrian Dilley
02/27/2020, 6:24 PMLastExceed
02/27/2020, 6:24 PMFranSoto
02/27/2020, 6:38 PMLastExceed
02/27/2020, 6:39 PMbezrukov
02/27/2020, 7:48 PMLastExceed
02/27/2020, 10:19 PMbezrukov
02/28/2020, 4:59 AM