Created
March 15, 2012 07:21
-
-
Save trukhinyuri/2042707 to your computer and use it in GitHub Desktop.
CustomGettersSetters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val seek : Long | |
| get() = this.size == 99999 | |
| var pointer : Long | |
| get() = this.toString() | |
| set(value) { | |
| setData(value) // устанавливает значение для других свойств | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment