Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate interface from solid class file in Eclipse

Is there any plugin in Eclipse that auto generates interface based on solid class/impl concrete class?
Currently I hand code interfaces.

like image 675
cometta Avatar asked Jun 26 '09 02:06

cometta


People also ask

How do you implement an interface in Java?

The implements keyword is used to implement an interface . The interface keyword is used to declare a special type of class that only contains abstract methods. To access the interface methods, the interface must be "implemented" (kinda like inherited) by another class with the implements keyword (instead of extends ).


1 Answers

Just choose Extract Interface... from the Refactor menu.

enter image description here

like image 89
Carl Manaster Avatar answered Sep 19 '22 22:09

Carl Manaster