closedX
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