What's the best way to use a java class, but make it NonNullable? Wrap it in an inline class? Or is there an easier way? I basically would like to have a kotlin equivalent to a java class (which I can't change)
m
Mike
09/11/2019, 4:45 PM
The nullability is determined by the definition when you create the type, or how you use it in your code. The Kotlin type system doesn't care if the type is defined in Java or Kotlin.
j
jk2018
09/11/2019, 7:22 PM
Thanks. You are right. Got confused with a situation related to type inference. Got it now.