How to generate java bean class from interface in IntelliJ?

So, there is already a way to generate a class implementation in IntelliJ (v11), but it is pretty simple.

It will create a class with all the methods necessary to satisfy the interface. These methods are empty and return zero if necessary.

I am looking for a plugin or something that will generate beans from an interface. If the generator sees the getXXXX or setXXX (or isXXX) method in the interface, it will create a member of this type and receive or return this element, respectively, in the implemented class.

+6
source share
1 answer

All you can do is create a new class that implements the interface, and then tell IntelliJ that all methods have been implemented. From now on you must fill in the meat methods. There is no magic that I know of.

+4
source

Source: https://habr.com/ru/post/907900/


All Articles