Is it possible to change the code generation template for equals() and hashCode()?
equals()
hashCode()
I would like the generated code to use the Java 7 Objects class for theses methods.
Objects
As of release 14.1 of the Ultimate Edition it is possible to customize the Code generation template of equals()/hashCode() without the use of any third party plugin.
Press "Alt + Insert" (Generate...), choose "equals() and hashCode()" and you will be able to select one of the predefined templates or a customized template of your own.
2.1m questions
2.1m answers
60 comments
57.0k users