equals

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

Compares this set with another set instance with the unordered structural equality.

Since Kotlin

1.1

Return

true, if other instance is a Set of the same size, all elements of which are contained in this set.

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

Compares this set with another set instance with the unordered structural equality.

Since Kotlin

1.3

Return

true, if other instance is a Set of the same size, all elements of which are contained in this set.