leonardootto
08/21/2017, 1:32 PMkarelpeeters
08/21/2017, 1:35 PMinline val Long.sign
get() = when {
this > 0L -> 1
this < 0L -> -1
else -> 0
}
inline val Long.abs
get() = Math.abs(this)
leonardootto
08/21/2017, 1:47 PMbenleggiero
08/21/2017, 1:50 PMinline var Map<String, MyKey>.isStarted: Boolean
get() = this["isStarted"].booleanValue
set(newValue: Boolean) = this["isStarted"] = MyKey(booleanValue = newValue)