range type value
Top bound
True if the range is reversed
Bottom bound
Range type
Returns an iterator from the range
Clamps an element to be within the range if it falls outside.
If the range is invalid or empty, the method always returns null
.
Clones the range and returns a new
Returns true if the specified element is contained inside the range (the element can be a simple value or another range)
Returns an iterator from the range that produces pairs of iteration indices and values
Returns an iterator from the range that produces iteration indices
Returns a new range with the latest starting point as its start, and the earliest ending point as its end. If the two ranges do not intersect, this will effectively produce an empty range.
The method preserves element ordering of the first range. The intersection of ranges with different types will always produce an empty range.
Returns true if the range is valid
Clones the range with reversing of element ordering and returns a new
Returns a span of the range. The span includes both the start and the end.
If the range is a date range, the value is in milliseconds.
If the range is invalid or empty, the method always returns 0
.
Creates an array from the range and returns it. Mind, you can't transform infinite ranges to arrays, but you free to use iterators.
Creates a string from the range and returns it. If the range invalid or empty, the method always returns an empty string.
Converts a value to the real range type
Returns a new range with the earliest starting point as its start, and the latest ending point as its end. If the two ranges do not intersect, this will effectively remove the "gap" between them.
The method preserves element ordering of the first range. The union of ranges with different types will always produce an empty range.
Returns an iterator from the range
A class to create a range with the specified type. The class supports ranges of numbers, strings, and dates.