// Generated code. Do not modify. package com.yandex.div.reference import org.json.JSONArray import org.json.JSONObject class EntityWithArray( @JvmField val array: List, // at least 1 elements ) : Hashable { private var _hash: Int? = null override fun hash(): Int { _hash?.let { return it } val hash = this::class.hashCode() + array.sumOf { it.hash() } _hash = hash return hash } fun equals(other: EntityWithArray?, resolver: ExpressionResolver, otherResolver: ExpressionResolver): Boolean { other ?: return false return array.compareWith(other.array) { a, b -> a.equals(b, resolver, otherResolver) } } fun copy( array: List = this.array, ) = EntityWithArray( array = array, ) companion object { const val TYPE = "entity_with_array" } }