api / tv.twelvetone.json / JsonValue / equals

equals

open fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one according to the contract specified in Object.equals.

Two JsonValues are considered equal if and only if they represent the same JSON text. As a consequence, two given JsonObjects may be different even though they contain the same set of names with the same values, but in a different order.

Parameters
object the reference object with which to compare

Return
true if this object is the same as the object argument; false otherwise