I would like the java hashcode() and equals() functions to be added/updated when the class is saved, or even better; when fields are added/removed/changed.

It seems Lombok can do this but I am looking for alternate solutions that will work with code that does not have the Lombok annotations.

I know Eclipse can generate them, but this needs to be triggered manually.

Is there a plugin that already does this? If not, would it be possible for me to make one that does this (listen for saves and then trigger a generate function)?

Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.