IntelliJ IDEA 2021.1 Help

Replace Inheritance with Delegation dialog

Refactor | Replace Inheritance with Delegation

ItemDescription
Replace with delegation inheritance fromSelect here the parent object, inheritance to which will be replaced.
Field nameSpecify the name for the field of the new inner class.
Inner class nameIn this field specify the name for the inner class definition.
Delegate membersIn this area, select the members of the parent class, that will be delegated through the inner class.
Generate getter for delegated componentCheck this option to create a getter for the inner class.
Last modified: 08 March 2021