Skip to content

Request to this work for Kotlin #3

@j2emanue

Description

@j2emanue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions