mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
c9caf87860
commit_hash:3ad603b95c6c6ead4feaa591da3fbe2e91751455
40 lines
1005 B
Kotlin
40 lines
1005 B
Kotlin
// Generated code. Do not modify.
|
|
|
|
package com.yandex.div.reference
|
|
|
|
import org.json.JSONArray
|
|
import org.json.JSONObject
|
|
|
|
class EntityWithStringArrayProperty(
|
|
@JvmField val array: ExpressionList<String>, // at least 1 elements
|
|
) : Hashable {
|
|
|
|
private var _hash: Int? = null
|
|
|
|
override fun hash(): Int {
|
|
_hash?.let {
|
|
return it
|
|
}
|
|
val hash =
|
|
this::class.hashCode() +
|
|
array.hashCode()
|
|
_hash = hash
|
|
return hash
|
|
}
|
|
|
|
fun equals(other: EntityWithStringArrayProperty?, resolver: ExpressionResolver, otherResolver: ExpressionResolver): Boolean {
|
|
other ?: return false
|
|
return array.evaluate(resolver).compareWith(other.array.evaluate(otherResolver)) { a, b -> a == b }
|
|
}
|
|
|
|
fun copy(
|
|
array: ExpressionList<String> = this.array,
|
|
) = EntityWithStringArrayProperty(
|
|
array = array,
|
|
)
|
|
|
|
companion object {
|
|
const val TYPE = "entity_with_string_array_property"
|
|
}
|
|
}
|