gildor
01/17/2018, 9:26 AMarekolek
01/17/2018, 12:30 PMpublic class Foo {
private String bar;
private String getBar() {
return bar;
}
public void setBar(String bar) {
this.bar = bar;
}
}
But I was wrong, because you can’t use the property access syntax in Kotlin for this Java type.class Foo {
private var bar: String? = null
set
}
var foo = Foo()
foo.bar = "dsfafdas"
foo.setBar("dsfafdas")
igor.wojda
01/24/2018, 4:29 PM