Shawn
06/16/2018, 5:37 PMcompareTo(Any?)
definedHullaballoonatic
06/16/2018, 6:21 PMfor(i in 0 until numTimes)
even though you won't be using the i at all?gabrielfv
06/16/2018, 8:53 PMkarelpeeters
06/16/2018, 9:10 PMHullaballoonatic
06/16/2018, 9:13 PMmiha-x64
06/17/2018, 9:01 AMvarargFunction(a, b, c)
will then be equal to varargFunction(*arrayOf(a, b, c))
miha-x64
06/17/2018, 7:06 PM@JvmSynthetic
is not applicable for classes?Niels Renard
06/18/2018, 11:46 AMHullaballoonatic
06/19/2018, 12:41 AMAyden
06/19/2018, 4:35 AMKotlin in Action
?Hullaballoonatic
06/19/2018, 8:49 PMaromal.s
06/21/2018, 11:29 AMthanksforallthefish
06/21/2018, 2:44 PMinterface LocalsearchCustomerClient {
fun <http://Customer.post|Customer.post>(): Flux<URI>
}
and a test using Mockito
like @Mock private lateinit var localsearchCustomerClient: LocalsearchCustomerClient
, can I mock the call somehow?
I tried `Mockito.`when`(localsearchCustomerClient.run(any<LocalsearchCustomerClient.() -> Flux<URI>>())).thenReturn(Flux.empty())` but that gives me Misplaced or misused argument matcher detected here
.
or, oth, am I trying too hard to use extension functions here? should it just be fun post(customer: Customer): Flux<URI>
?Hamza
06/21/2018, 3:18 PMwith
?codyoss
06/22/2018, 4:01 PMclass Foo<T>(val bar: T)
and class Foo<T: Any>(val bar: T)
. I don’t understand what the : Any
gets you…orangy
ursus
06/24/2018, 2:53 AMwineluis
06/24/2018, 11:16 AMrjhdby
06/26/2018, 8:28 AMGta
06/27/2018, 9:23 AMDaniele Segato
06/28/2018, 7:16 AMRichard Green
06/28/2018, 12:58 PMobject M {
class C (val x: Int, val y: Int = 5)
}
class N(val x: Int, val y: Int = 5)
fun main(args: Array<String>) {
val p = N(3)
val q = (M::C)(3)
}
Why is there a syntax error in the val q = line ?Shawn
06/29/2018, 4:13 PMDate
in place of the long it looks likeursus
06/29/2018, 10:19 PMwhen
when I dont want the branch to do nothing?ursus
06/29/2018, 10:24 PMkarelpeeters
06/30/2018, 11:50 PMbriedis
06/30/2018, 11:51 PMcrjacinro
07/02/2018, 4:24 AModay
07/02/2018, 8:36 AMsearchResults.sortByDescending {
if (it.negotiated_price != null) {
100 - ((it.negotiated_price!!.toInt() / it.price) * 100)
} else {
it.price
}
}
cart
07/03/2018, 7:10 PM