equals

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

Compares the specified object with this set for equality. Returns true if the given object is also a set, the two sets have the same size, and every member of the given set is contained in this set.

Return

true if the specified object is equal to this set

Parameters

other

object to be compared for equality with this set