OpenEndRange
Represents a range of values (for example, numbers or characters) where the upper bound is not included in the range. See the Kotlin language documentation for more information.
Properties
endExclusive
The maximum value in the range (exclusive).
abstract val endExclusive: T
start
The minimum value in the range.
abstract val start: T
Functions
contains
Checks whether the specified value belongs to the range.
open operator fun contains(value: T): Boolean
isEmpty
Checks whether the range is empty.
open fun isEmpty(): Boolean
Extension Functions
contains
Checks if the specified value belongs to this range.
operator fun OpenEndRange<Int>.contains(value: Byte): Boolean
operator fun OpenEndRange<Long>.contains(
value: Byte
): Boolean
operator fun OpenEndRange<Short>.contains(
value: Byte
): Boolean
operator fun OpenEndRange<Double>.contains(
value: Float
): Boolean
operator fun OpenEndRange<Long>.contains(value: Int): Boolean
operator fun OpenEndRange<Byte>.contains(value: Int): Boolean
operator fun OpenEndRange<Short>.contains(
value: Int
): Boolean
operator fun OpenEndRange<Int>.contains(value: Long): Boolean
operator fun OpenEndRange<Byte>.contains(
value: Long
): Boolean
operator fun OpenEndRange<Short>.contains(
value: Long
): Boolean
operator fun OpenEndRange<Int>.contains(
value: Short
): Boolean
operator fun OpenEndRange<Long>.contains(
value: Short
): Boolean
operator fun OpenEndRange<Byte>.contains(
value: Short
): Boolean
Inheritors
CharRange
A range of values of type Char
.
class CharRange :
CharProgression,
ClosedRange<Char>,
OpenEndRange<Char>
IntRange
A range of values of type Int
.
class IntRange :
IntProgression,
ClosedRange<Int>,
OpenEndRange<Int>
LongRange
A range of values of type Long
.
class LongRange :
LongProgression,
ClosedRange<Long>,
OpenEndRange<Long>
UIntRange
A range of values of type UInt
.
class UIntRange :
UIntProgression,
ClosedRange<UInt>,
OpenEndRange<UInt>
ULongRange
A range of values of type ULong
.
class ULongRange :
ULongProgression,
ClosedRange<ULong>,
OpenEndRange<ULong>