can you make this work for kotlin files ?
i think it will be easy to use because kotlin has default params. so you could write:
class MYOBJECT(
var symbol: String? = null,
var name: String? = null,
var selected: Boolean = false
) : Parcelable{
fun deepCopy(symbol: String? = this.symbol, name: String? = this.name, selected:Boolean=this.selected) = MYOBJECT(symbol, name, selected)
}
and only have to call someObject.deepCopy() and let it use the defaults
can you make this work for kotlin files ?
i think it will be easy to use because kotlin has default params. so you could write:
class MYOBJECT(
var symbol: String? = null,
var name: String? = null,
var selected: Boolean = false
) : Parcelable{
and only have to call someObject.deepCopy() and let it use the defaults