Join Slack
Powered by
Hi, what is the Kotlin equivalent of `Long::longVa...
# 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 !
4
Views
Open in Slack
Previous
Next