IntelliJ IDEA 2017.3 Help

Replace Inheritance with Delegation Dialog

Refactor | Replace Inheritance with Delegation

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: 6 March 2018

See Also