https://kotlinlang.org logo
v

voddan

06/26/2016, 11:58 AM
that's the observer pattern:
Copy code
interface myInterface {
    var bar: Int = 0
       set(v) {
           notify(field, v) 
           field = v
       }
}