W3cubDocs

/Kotlin

contains

@JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
    value: Byte
): Boolean
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
    value: Byte
): Boolean
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
    value: Byte
): Boolean
@JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
    value: Byte
): Boolean
@JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
    value: Byte
): Boolean
@JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
    value: Double
): Boolean
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
    value: Double
): Boolean
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
    value: Double
): Boolean
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
    value: Double
): Boolean
@JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
    value: Double
): Boolean
@JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
    value: Float
): Boolean
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
    value: Float
): Boolean
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
    value: Float
): Boolean
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
    value: Float
): Boolean
@JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
    value: Float
): Boolean
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
    value: Int
): Boolean
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
    value: Int
): Boolean
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
    value: Int
): Boolean
@JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
    value: Int
): Boolean
@JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
    value: Int
): Boolean
@JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
    value: Long
): Boolean
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
    value: Long
): Boolean
@JvmName("shortRangeContains") operator fun ClosedRange<Short>.contains(
    value: Long
): Boolean
@JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
    value: Long
): Boolean
@JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
    value: Long
): Boolean
@JvmName("intRangeContains") operator fun ClosedRange<Int>.contains(
    value: Short
): Boolean
@JvmName("longRangeContains") operator fun ClosedRange<Long>.contains(
    value: Short
): Boolean
@JvmName("byteRangeContains") operator fun ClosedRange<Byte>.contains(
    value: Short
): Boolean
@JvmName("doubleRangeContains") operator fun ClosedRange<Double>.contains(
    value: Short
): Boolean
@JvmName("floatRangeContains") operator fun ClosedRange<Float>.contains(
    value: Short
): Boolean

Checks if the specified value belongs to this range.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/contains.html