closedX

fun <T : Comparable<*>> closedX(lower: T, upper: T, upperBoundType: BoundType): Range<T>

Creates a Range of the form [lower, upper] or [lower, upper) depending on the upperBoundType.

Return

created Range

Parameters

lower

lower endpoint

upper

upper endpoint

upperBoundType

type of upper bound which must not be BoundType.NONE