IntelliJ IDEA 2016.2 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.

See Also

Last modified: 23 November 2016