I am using the Kotlin class from Java code. My Kotlin class is as follows:
class Something { var a = 0 }
I want to have access to a
from Java code, for example
s = new Something(); sa = 5;
however, I only have s.getA()
and s.setA(5)
. Is there a way to make this property directly configurable and Java ready? Obviously, in this case we cannot have a custom getter and setter.
source share