Join Slack
Hi, what is the Kotlin equivalent of `Long::longValue()` : <https://www.geeksforgeeks.org/long-longv...
# getting-started
a
Ayfri
08/20/2021, 6:26 AM
Hi, what is the Kotlin equivalent of
Long::longValue()
:
https://www.geeksforgeeks.org/long-longvalue-method-in-java/
?
e
ephemient
08/20/2021, 7:24 AM
none. Kotlin will automatically box to Long/unbox to long (as does Java since 1.5). the compiler will emit bytecode that calls Long.longValue() as needed
a
Ayfri
08/20/2021, 7:25 AM
ah, okay thanks !
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by