equals

open operator override fun equals(other: Any?): Boolean(source)

Implements proper equality comparison for ByteArray content.

The default ByteArray.equals() method compares object references rather than content, which would cause identical state data to be considered different. This implementation ensures that two KarlContainerState instances with identical data and version are considered equal.

Return

true if the other object is a KarlContainerState with identical data content and version number

Parameters

other

The object to compare with this KarlContainerState