api / tv.twelvetone.json / JsonArray / equals

equals

fun equals(other: Any?): Boolean

Overrides JsonValue.equals

Indicates whether a given object is "equal to" this JsonArray. An object is considered equal if it is also a JsonArray and both arrays contain the same list of values.

If two JsonArrays are equal, they will also produce the same JSON output.

Parameters
object the object to be compared with this JsonArray

Return
true if the specified object is equal to this JsonArray, false otherwise