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

See Also

Last modified: 5 November 2015