技术栈

coercein

xiangxiongfly915
2 个月前
kotlin·coercein
Kotlin 边界限制coerceIn():限制值的范围,超出范围则返回边界值。coerceAtLeast():限制下限,低于下限值则返回下限值。