[Gradle][MPP] ObservableSet: Implement equals/hashCode/toString
^KT-52726 Verification Pending
This commit is contained in:
committed by
Space
parent
dc8a6b8def
commit
a0d350fad4
+12
@@ -76,6 +76,18 @@ internal class MutableObservableSet<T>(vararg elements: T) : ObservableSet<T>, M
|
||||
return underlying.contains(element)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return underlying == other
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return underlying.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return underlying.toString()
|
||||
}
|
||||
|
||||
init {
|
||||
underlying.addAll(elements)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user