checkArgumentNonnegative

@IntRange(from = 0.toLong())
fun checkArgumentNonnegative(value: Int): Int

Ensures that that the argument numeric value is non-negative.

Return

the validated numeric value

Parameters

value

a numeric int value

Throws

if value was negative