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

y

03/13/2024, 6:56 PM
how can I call
Int.toUInt()
, or otherwise construct a
UInt
, from Java?
m

Michael Krussel

03/13/2024, 7:08 PM
I would guess it would be something like
UIntKt.toUInt(myInt)
. But since the class is just an inline wrapper around an int, all it will do is return the same value passed in and the return type in Java will be
int
.