Buy me a coffee
Kotlin
›
数値
›
coerceIn
←
toString
coerceIn
数値
LocalDate.now
→
値をmin〜maxの範囲に制限します。
構文
value.coerceIn(min, max)