isIn

fun isIn(bounds: Range, lowerBound: Int = bounds.start!!, upperBound: Int = bounds.end!!): Boolean

Return

whether this range is contained within bounds

Parameters

bounds

range to check if this range is in. Both its start and end values must be non-null

lowerBound

lower bound of bounds to use if start is null

upperBound

upper bound of bounds to use if end is null