I am using a Kotlin class from Java code. My Kotlin class looks like:
class Something {
var a = 0
}
I want to be able to access a from Java code like
s = new Something();
s.a = 5;
however, I only have s.getA() and s.setA(5). Is there any way to make this property directly settable and gettable from Java? Obviously we can't have custom getter and setter in this case.