July 2018
Intermediate to advanced
242 pages
8h 6m
English
val initialValue = 1
val initialTemperature = 1val updateCondition: (KProperty<*>, Int, Int) -> Boolean = { _, oldValue: Int, newValue: Int -> Math.abs(oldValue - newValue) >= 10 }
val initialTemperature = 1val updateCondition: (KProperty<*>, Int, Int) -> Boolean = { _, oldValue: Int, newValue: Int -> Math.abs(oldValue - newValue) >= 10 }var temperature: Int by Delegates.vetoable(initialTemperature, updateCondition)
Read now
Unlock full access