If you don't want to use data classes for whatever...
# getting-started
r
If you don't want to use data classes for whatever reason, you can always define your own copy. In your case something like:
Copy code
class BuilderExample(val exampleString: String, val exampleInt: Int) {
    fun copy(exampleString: String = this.exampleString, exampleInt: Int = this.exampleInt) = BuilderExample(exampleString, exampleInt)
}