RichUtils / pyxis.uzuki.live.richutilskt.utils / kotlin.Long / makeLimit

makeLimit

@JvmOverloads fun Long.makeLimit(min: Long = 0, max: Long = 0): Long

Adjust the given number so that it does not go out of range with given min, max

Parameters

min - Long

max - Long

Receiver
Long

Return
Long