KCounter

constructor(initialValue: Int = 0, min: Int = Int.MIN_VALUE, max: Int = Int.MAX_VALUE, step: Int = 1)(source)

Parameters

initialValue

Starting value (automatically clamped to [min, max]).

min

Lower bound, inclusive. Default: Int.MIN_VALUE.

max

Upper bound, inclusive. Default: Int.MAX_VALUE.

step

The amount to add or subtract on each increment or decrement. Must be positive. Default: 1.