rangeOfNullable
fun <T : Comparable<*>> rangeOfNullable(lowerBoundType: BoundType, lowerEndpoint: T?, upperBoundType: BoundType, upperEndpoint: T?): Range<T>
Creates a Range based on bound type and endpoint values. If bound type is BoundType.NONE the respective endpoint value must be null for consistency reasons.
Return
created Range
Parameters
lowerBoundType
lower bound type which must be consistent with lowerEndpoint
lowerEndpoint
value for lower endpoint
upperBoundType
upper bound type which must be consistent with upperEndpoint
upperEndpoint
value for upper endpoint