locke
01/13/2019, 6:10 AMlocke
01/13/2019, 6:10 AMlocke
01/13/2019, 6:11 AM(((View) -> Unit) -> Unit)
. So I could do something like:
this::setOnClickListener.myVal
locke
01/13/2019, 6:12 AMval listener: (((View) -> Unit) -> Unit) = this::setOnClickListener
listener.myVal
locke
01/13/2019, 6:12 AMsetOnClickListener
I wantPavlo Liapota
01/13/2019, 10:51 AMinterface Foo<T> {
val bar: T
}
class IntFoo(
override val bar: Int
) : Foo<Int>
In bytecode method IntFoo#getBar()
will return Integer
, so on every property usage
val b: Int = intFoo.bar
value will be boxed and then unboxed.
But JIT compiler should be smart enough to figure it out eventually, so overhead should not be considerable, right?Dylech30th
09/27/2020, 9:31 AMDylech30th
09/27/2020, 9:34 AMAnimesh Sahu
09/27/2020, 3:37 PMuser
09/28/2020, 10:49 AMuser
09/28/2020, 10:56 AMelectrolobzik
09/28/2020, 11:15 AMuser
09/28/2020, 4:30 PMPhilipp Mayer
09/28/2020, 7:21 PMadapter/
application/
domain/
and instead of having adapter/test etc. I would have a separate test module sitting beside them. In that module, I would separate the Integration from Unit tests with different packages.
I thought a little bit about it and I like it more and more, but it would be great to hear other experience!Brian Dilley
09/28/2020, 8:11 PMjeggy
09/28/2020, 8:57 PM@Test
, @TestFactory
, @BeforeAll
, @AfterAll
and be able to just click the play icon and intellij will run it without problems as I would be using the standard setup.user
09/29/2020, 8:31 AMuser
09/29/2020, 4:11 PMPeter
09/29/2020, 9:23 PMPeter
09/29/2020, 9:35 PMuser
09/30/2020, 3:30 PMuser
10/01/2020, 10:53 AMuser
10/02/2020, 3:30 PMLeoColman
10/02/2020, 5:07 PMOndrej Zavodny
10/03/2020, 8:11 PMAbhishek Tiwari
10/04/2020, 5:57 AMAbhishek Tiwari
10/04/2020, 6:01 AMAbhishek Tiwari
10/04/2020, 6:01 AMJan Steinke
10/04/2020, 7:46 AM