Deep equality that ignores ordering: arrays are compared as multisets
(same elements, any order) and objects by key/value regardless of key order.
For JSON-style values — primitives, plain objects, and arrays. Use equals
for the faster order-sensitive variant (and for typed buffers, which are
ordered sequences).
Array matching is O(n²) (each element pairs with a distinct partner), which
is intended for modest collections such as a conformance State, not large
hot-path arrays.
Deep equality that ignores ordering: arrays are compared as multisets (same elements, any order) and objects by key/value regardless of key order.
For JSON-style values — primitives, plain objects, and arrays. Use
equalsfor the faster order-sensitive variant (and for typed buffers, which are ordered sequences).Array matching is O(n²) (each element pairs with a distinct partner), which is intended for modest collections such as a conformance
State, not large hot-path arrays.