@@ -97,6 +97,9 @@ public actual fun CharArray.asList(): List<Char> {
97
97
*
98
98
* If two corresponding elements are nested arrays, they are also compared deeply.
99
99
* If any of arrays contains itself on any nesting level the behavior is undefined.
100
+ *
101
+ * The elements of other types are compared for equality with the [equals][Any.equals] function.
102
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
100
103
*/
101
104
@SinceKotlin(" 1.1" )
102
105
public actual infix fun <T > Array <out T >.contentDeepEquals (other : Array <out T >): Boolean {
@@ -131,6 +134,9 @@ public actual fun <T> Array<out T>.contentDeepToString(): String {
131
134
/* *
132
135
* Returns `true` if the two specified arrays are *structurally* equal to one another,
133
136
* i.e. contain the same number of the same elements in the same order.
137
+ *
138
+ * The elements are compared for equality with the [equals][Any.equals] function.
139
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
134
140
*/
135
141
@SinceKotlin(" 1.1" )
136
142
public actual infix fun <T > Array <out T >.contentEquals (other : Array <out T >): Boolean {
@@ -140,6 +146,9 @@ public actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boo
140
146
/* *
141
147
* Returns `true` if the two specified arrays are *structurally* equal to one another,
142
148
* i.e. contain the same number of the same elements in the same order.
149
+ *
150
+ * The elements are compared for equality with the [equals][Any.equals] function.
151
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
143
152
*/
144
153
@SinceKotlin(" 1.1" )
145
154
public actual infix fun ByteArray.contentEquals (other : ByteArray ): Boolean {
@@ -149,6 +158,9 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
149
158
/* *
150
159
* Returns `true` if the two specified arrays are *structurally* equal to one another,
151
160
* i.e. contain the same number of the same elements in the same order.
161
+ *
162
+ * The elements are compared for equality with the [equals][Any.equals] function.
163
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
152
164
*/
153
165
@SinceKotlin(" 1.1" )
154
166
public actual infix fun ShortArray.contentEquals (other : ShortArray ): Boolean {
@@ -158,6 +170,9 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
158
170
/* *
159
171
* Returns `true` if the two specified arrays are *structurally* equal to one another,
160
172
* i.e. contain the same number of the same elements in the same order.
173
+ *
174
+ * The elements are compared for equality with the [equals][Any.equals] function.
175
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
161
176
*/
162
177
@SinceKotlin(" 1.1" )
163
178
public actual infix fun IntArray.contentEquals (other : IntArray ): Boolean {
@@ -167,6 +182,9 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean {
167
182
/* *
168
183
* Returns `true` if the two specified arrays are *structurally* equal to one another,
169
184
* i.e. contain the same number of the same elements in the same order.
185
+ *
186
+ * The elements are compared for equality with the [equals][Any.equals] function.
187
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
170
188
*/
171
189
@SinceKotlin(" 1.1" )
172
190
public actual infix fun LongArray.contentEquals (other : LongArray ): Boolean {
@@ -176,6 +194,9 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean {
176
194
/* *
177
195
* Returns `true` if the two specified arrays are *structurally* equal to one another,
178
196
* i.e. contain the same number of the same elements in the same order.
197
+ *
198
+ * The elements are compared for equality with the [equals][Any.equals] function.
199
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
179
200
*/
180
201
@SinceKotlin(" 1.1" )
181
202
public actual infix fun FloatArray.contentEquals (other : FloatArray ): Boolean {
@@ -185,6 +206,9 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
185
206
/* *
186
207
* Returns `true` if the two specified arrays are *structurally* equal to one another,
187
208
* i.e. contain the same number of the same elements in the same order.
209
+ *
210
+ * The elements are compared for equality with the [equals][Any.equals] function.
211
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
188
212
*/
189
213
@SinceKotlin(" 1.1" )
190
214
public actual infix fun DoubleArray.contentEquals (other : DoubleArray ): Boolean {
@@ -194,6 +218,9 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
194
218
/* *
195
219
* Returns `true` if the two specified arrays are *structurally* equal to one another,
196
220
* i.e. contain the same number of the same elements in the same order.
221
+ *
222
+ * The elements are compared for equality with the [equals][Any.equals] function.
223
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
197
224
*/
198
225
@SinceKotlin(" 1.1" )
199
226
public actual infix fun BooleanArray.contentEquals (other : BooleanArray ): Boolean {
@@ -203,6 +230,9 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
203
230
/* *
204
231
* Returns `true` if the two specified arrays are *structurally* equal to one another,
205
232
* i.e. contain the same number of the same elements in the same order.
233
+ *
234
+ * The elements are compared for equality with the [equals][Any.equals] function.
235
+ * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
206
236
*/
207
237
@SinceKotlin(" 1.1" )
208
238
public actual infix fun CharArray.contentEquals (other : CharArray ): Boolean {
0 commit comments