hoang
06/25/2016, 1:42 PMoperator fun Number.compareTo(other: Number): Int {
return when {
this is Int && other is Int -> this.compareTo(other)
this is Long && other is Long -> this.compareTo(other)
else -> 0
}
}