title: How to detect values changed in Data class Kotlin?
body: <p>I want to detect any values changed of a property of my class so then I could do another operation after that. In other word, if one of a specific data of a property is changed, then a specific event will fire by then. Actually, if it is a normal class in another programming languages such as Java, then I think I could use setter to do this job after data have modified or use delegate in C#. But since Kotlin is very new, I could not find any solution out there at all. 
  I have tried to overload property but was not successful by any chance. I wanted to use interface to to this too, but again since it is data class, I got no idea how should it be done. </p>
  
  <p>Below is the sample class. In such situation, how to detect when Age or name is changed?</p>
  
  <pre><code>data class Person(var Name: String, var Age: Int) 
  </code></pre>
  
  <p>So please if anyone have any ideas about this, please help.</p>
  
  <p><em>Note: in my situation, data class must be used.</em></p>