技术栈
coercein
xiangxiongfly915
17 小时前
kotlin
·
coercein
Kotlin 边界限制
coerceIn():限制值的范围,超出范围则返回边界值。coerceAtLeast():限制下限,低于下限值则返回下限值。