contains
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
value: Byte
): Boolean
(source)
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
value: Byte
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
value: Byte
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
value: Byte
): Boolean
(source)
@JvmName("longRangeContains") operator fun OpenEndRange<Long>.contains(
value: Byte
): Boolean
(source)
@JvmName("shortRangeContains") operator fun OpenEndRange<Short>.contains(
value: Byte
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
value: Double
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
value: Double
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
value: Double
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
value: Double
): Boolean
(source)
@JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
value: Double
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
value: Float
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
value: Float
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
value: Float
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
value: Float
): Boolean
(source)
@JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
value: Float
): Boolean
(source)
@JvmName("doubleRangeContains") operator fun OpenEndRange<Double>.contains(
value: Float
): Boolean
(source)
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
value: Int
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
value: Int
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
value: Int
): Boolean
(source)
@JvmName("longRangeContains") operator fun OpenEndRange<Long>.contains(
value: Int
): Boolean
(source)
@JvmName("byteRangeContains") operator fun OpenEndRange<Byte>.contains(
value: Int
): Boolean
(source)
@JvmName("shortRangeContains") operator fun OpenEndRange<Short>.contains(
value: Int
): Boolean
(source)
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
value: Long
): Boolean
(source)
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
value: Long
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
value: Long
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
value: Long
): Boolean
(source)
@JvmName("byteRangeContains") operator fun OpenEndRange<Byte>.contains(
value: Long
): Boolean
(source)
@JvmName("shortRangeContains") operator fun OpenEndRange<Short>.contains(
value: Long
): Boolean
(source)
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
value: Short
): Boolean
(source)
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
value: Short
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
value: Short
): Boolean
(source)
@DeprecatedSinceKotlin("1.3", "1.4", "1.5") @JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
value: Short
): Boolean
(source)
@JvmName("intRangeContains") operator fun OpenEndRange<Int>.contains(
value: Short
): Boolean
(source)
@JvmName("longRangeContains") operator fun OpenEndRange<Long>.contains(
value: Short
): Boolean
(source)
@JvmName("byteRangeContains") operator fun OpenEndRange<Byte>.contains(
value: Short
): Boolean
(source)
Checks if the specified value belongs to this range.
operator fun <T : Any, R> R.contains(
element: T?
): Boolean where R : ClosedRange<T>, R : Iterable<T>
(source)