OpenEndRange

Common
JVM
JS
Native
1.9
interface OpenEndRange<T : Comparable<T>>
(source)

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

Common
JVM
JS
Native
1.0

endExclusive

The maximum value in the range (exclusive).

abstract val endExclusive: T
Common
JVM
JS
Native
1.0

start

The minimum value in the range.

abstract val start: T

Functions

Common
JVM
JS
Native
1.0

contains

Checks whether the specified value belongs to the range.

open operator fun contains(value: T): Boolean
Common
JVM
JS
Native
1.0

isEmpty

Checks whether the range is empty.

open fun isEmpty(): Boolean

Extension Functions

Common
JVM
JS
Native
1.9

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

Common
JVM
JS
Native
1.0

CharRange

A range of values of type Char.

class CharRange : 
    CharProgression,
    ClosedRange<Char>,
    OpenEndRange<Char>
Common
JVM
JS
Native
1.0

IntRange

A range of values of type Int.

class IntRange : 
    IntProgression,
    ClosedRange<Int>,
    OpenEndRange<Int>
Common
JVM
JS
Native
1.0

LongRange

A range of values of type Long.

class LongRange : 
    LongProgression,
    ClosedRange<Long>,
    OpenEndRange<Long>
Common
JVM
JS
Native
1.5

UIntRange

A range of values of type UInt.

class UIntRange : 
    UIntProgression,
    ClosedRange<UInt>,
    OpenEndRange<UInt>
Common
JVM
JS
Native
1.5

ULongRange

A range of values of type ULong.

class ULongRange : 
    ULongProgression,
    ClosedRange<ULong>,
    OpenEndRange<ULong>