You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/gradle/gradle-configure-project.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ In the following table, there are the minimum and maximum **fully supported** ve
60
60
| 1.7.0–1.7.10 | 6.7.1–7.0.2 | 3.4.3–7.0.2 |
61
61
| 1.6.20–1.6.21 | 6.1.1–7.0.2 | 3.4.3–7.0.2 |
62
62
63
-
> Kotlin 2.0.20 is fully compatible with Gradle 6.8.3 through 8.6.
63
+
> *Kotlin 2.0.20 is fully compatible with Gradle 6.8.3 through 8.6.
64
64
> Gradle 8.7 and 8.8 are also supported, with only one exception: If you use the Kotlin Multiplatform Gradle plugin,
65
65
> you may see deprecation warnings in your multiplatform projects calling the [`withJava()` function in the JVM target](multiplatform-dsl-reference.md#jvm-targets).
66
66
> For more information, see the issue in [YouTrack](https://youtrack.jetbrains.com/issue/KT-66542/Gradle-JVM-target-with-withJava-produces-a-deprecation-warning).
|`toString()`| Prints a readable string of the class instance and its properties. |
157
+
|`equals()` or `==`| Compares instances of a class. |
158
+
|`copy()`| Creates a class instance by copying another, potentially with some different properties. |
159
159
160
160
See the following sections for examples of how to use each function:
161
161
@@ -165,8 +165,8 @@ See the following sections for examples of how to use each function:
165
165
166
166
### Print as string
167
167
168
-
To print a readable string of a class instance, you can explicitly call the `.toString()` function, or use print functions
169
-
(`println()` and `print()`) which automatically call `.toString()` for you:
168
+
To print a readable string of a class instance, you can explicitly call the `toString()` function, or use print functions
169
+
(`println()` and `print()`) which automatically call `toString()` for you:
170
170
171
171
```kotlin
172
172
data classUser(valname:String, valid:Int)
@@ -212,9 +212,9 @@ fun main() {
212
212
213
213
### Copy instance
214
214
215
-
To create an exact copy of a data class instance, call the `.copy()` function on the instance.
215
+
To create an exact copy of a data class instance, call the `copy()` function on the instance.
216
216
217
-
To create a copy of a data class instance **and** change some properties, call the `.copy()` function on the instance
217
+
To create a copy of a data class instance **and** change some properties, call the `copy()` function on the instance
218
218
**and** add replacement values for properties as function parameters.
219
219
220
220
For example:
@@ -329,7 +329,7 @@ a fixed list of potential names (inside the class body). Configure the class wit
329
329
the class header). In the class body, define the `generateEmployee()` function. Once again, the main function demonstrates
330
330
how you can use this class.
331
331
332
-
> In this exercise, you import a package so that you can use the `Random.nextInt()` function.
332
+
> In this exercise, you import a package so that you can use the [`Random.nextInt()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.random/-random/next-int.html) function.
333
333
> For more information about importing packages, see [Packages and imports](packages.md).
0 commit comments