Spec-Zone.ru › Kotlin 1.8

component4

kotlin-stdlib / kotlin.collections / component4
Требования к платформе и версии: JVM (1.0), JS (1.0), Native (1.0)
operator fun <T> Array<out T>.component4(): T
operator fun ByteArray.component4(): Byte
operator fun ShortArray.component4(): Short
operator fun IntArray.component4(): Int
operator fun LongArray.component4(): Long
operator fun FloatArray.component4(): Float
operator fun DoubleArray.component4(): Double
operator fun BooleanArray.component4(): Boolean
operator fun CharArray.component4(): Char
@ExperimentalUnsignedTypes operator fun UIntArray.component4(): UInt
@ExperimentalUnsignedTypes operator fun ULongArray.component4(): ULong
@ExperimentalUnsignedTypes operator fun UByteArray.component4(): UByte
@ExperimentalUnsignedTypes operator fun UShortArray.component4(): UShort

Возвращает 4-й элемент из массива.

Если размер этого массива меньше 4, выбрасывает IndexOutOfBoundsException, за исключением Kotlin/JS, где поведение не определено.

Требования к платформе и версии: JVM (1.0), JS (1.0), Native (1.0)
operator fun <T> List<T>.component4(): T

Возвращает 4-й элемент из списка.

Выбрасывает IndexOutOfBoundsException, если размер этого списка меньше 4.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/component4.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API