https://kotlinlang.org logo
#getting-started
Title
# getting-started
d

Daniel Felipe Henao Toro

02/10/2023, 3:40 PM
Hi everyone, can someone help me out with what this symbols !! means, please? 🙂 For instance:
Copy code
private fun <T> buildBody(parameters: T) =
        jacksonObjectMapper()
            .convertValue<Map<String, String>>(parameters!!)
            .let {
                LinkedMultiValueMap<String, String>().apply {
                    setAll(it)
                }
            }
l

Luke Armitage

02/10/2023, 3:42 PM
d

Daniel Felipe Henao Toro

02/10/2023, 3:42 PM
oh thank you Luke, will see there 🙂
p

phldavies

02/10/2023, 4:16 PM
If you know
parameters
cannot be null (it will throw when it is, using the
!!
) You can use
<T: Any>
to enforce it at compile time and avoid the need to use
!!
💯 1
👍 2
d

Daniel Felipe Henao Toro

02/10/2023, 7:07 PM
Ey Phil thanks it's interesting, I'm just did that change, thank so much!
4 Views