Files
divkit/api_generator/tests/references/shared_data_kotlin/EntityWithStringArrayProperty.kt
T
grechka62 d1a81ca6a7 Add copy method to divs
0fd13dc14c7677c595acfebbc2f7db605b2370bf
2024-04-10 11:40:44 +03:00

36 lines
758 B
Kotlin

// Generated code. Do not modify.
package com.yandex.div2
import org.json.JSONObject
class EntityWithStringArrayProperty(
@JvmField final val array: ExpressionList<String>, // at least 1 elements
) : Hashable {
private var _hash: Int? = null
override fun hash(): Int {
_hash?.let {
return it
}
val hash =
array.hashCode()
_hash = hash
return hash
}
fun copy(
array: ExpressionList<String> = this.array,
) = EntityWithStringArrayProperty(
array = array,
)
companion object {
const val TYPE = "entity_with_string_array_property"
private val ARRAY_VALIDATOR = ListValidator<String> { it: List<*> -> it.size >= 1 }
}
}