Package-level declarations
Properties
A middle point of the range. The value is rounded down.
Returns the next value of this enum (ordered the same way as declared in code, i.e. by ordinal).
Returns the previous value of this enum (ordered the same way as declared in code, i.e. by ordinal).
Returns the sign of this.
Returns the size of this range, from end inclusive to start
Functions
Produces a range that is fully contained within other range.
Returns true if this range is fully contained within the other range
Produces a range where min value is the minimum between other.start and ClosedRange.start and max value is maximum between other.endInclusive and ClosedRange.endInclusive
Expand the range left and right by delta and return the resulting range
Filter this by searching for elements that contain substring, or if string is not String.isValid, the list itself
Like indexOfFirst but returns null instead of -1. If the not found.
Subtract value from both start and end of the range
Add value to both start and end of the range
Returns a random index of this collection
Replaces all values of this with values from src
Calls requireNotNull on this value and returns it
Shrink the range left and right by delta and return the resulting range
Swaps values index1 with index2 in place. Throws IndexOutOfBoundsException when one or both indices are not present in the collection
Takes this string only if it isValid
Convert this range to a ClosedFloatingPointRange of Doubles
Convert this range to a ClosedFloatingPointRange of Floats
Convert this range to a LongRange
uses sign and prepends it to the value of this