Refactor and Delegation
I have a class that implements a couple of interfaces.
For one of the interfaces, I want to move all of its implementing
methods into a separate class, then have the original class delegate all
interface method calls to that class.
Does IDEA have a refactoring for this?
Thanks.
请先登录再写评论。
Refactor -> Replace Inheritance with Delegation
Wow! I always assumed that only worked with inheritance from classes, not interfaces. Sweet.
--Dave Griffith