Replace get() and set() to getValue() and setValue() (property delegates)

This commit is contained in:
Yan Zhulanow
2015-10-05 20:18:58 +03:00
parent 2fee9d362c
commit 1f2b4e20fe
295 changed files with 718 additions and 511 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class D {
fun get(a: Any, p: PropertyMetadata) { }
fun getValue(a: Any, p: PropertyMetadata) { }
}
object P {
@@ -1,6 +1,6 @@
class Holder(var value: Int) {
fun get(that: Any?, desc: PropertyMetadata) = value
fun set(that: Any?, desc: PropertyMetadata, newValue: Int) { value = newValue }
fun getValue(that: Any?, desc: PropertyMetadata) = value
fun setValue(that: Any?, desc: PropertyMetadata, newValue: Int) { value = newValue }
}
interface R<T: Comparable<T>> {