setBounds

fun setBounds(lower: T?, upper: T?, lowerInclusive: Boolean, upperInclusive: Boolean)

Sets the lower and upper bounds.

Parameters

lower

the lower bound, null if lower bound is open

upper

the upper bound, null if upper bound is open

lowerInclusive

true if the lower bound is inclusive, otherwise, false

upperInclusive

true if the upper bound is inclusive, otherwise, false

See also