Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » equals and hashcode generation tool modification
equals and hashcode generation tool modification [message #510873] Thu, 28 January 2010 17:30 Go to next message
Eclipse UserFriend
I am pretty new to eclipse development. I got a requirement where i need to change the functionality of default equals and hashcode generator to generate compareTo instead of equals comparison for BigDecimal and BigInteger.

I would appreciate if some one could direct me in proper channel to go about the solution.

summary of question : Need to change the funtionality of automatic generation of hash code and equals in ECLIPSE IDE 3.4

Please let me know if you have any questions.

Appreciate your help.

Thank you,
Raghu
Re: equals and hashcode generation tool modification [message #510924 is a reply to message #510873] Fri, 29 January 2010 03:05 Go to previous messageGo to next message
Eclipse UserFriend
raghu mamilla wrote:
> I am pretty new to eclipse development. I got a requirement where i
> need to change the functionality of default equals and hashcode
> generator to generate compareTo instead of equals comparison for
> BigDecimal and BigInteger.
>
> I would appreciate if some one could direct me in proper channel to go
> about the solution.
>
> summary of question : Need to change the funtionality of automatic
> generation of hash code and equals in ECLIPSE IDE 3.4
You cannot change that. The best path is to provide your own generator.
Of course you can start by copying the code of the existing generator.

Dani
>
> Please let me know if you have any questions.
>
> Appreciate your help.
> Thank you,
> Raghu
Re: equals and hashcode generation tool modification [message #510999 is a reply to message #510924] Fri, 29 January 2010 08:56 Go to previous message
Eclipse UserFriend
Thank you very much Dani.

I will look into the generator and try to create a new one.

Appreciate your help.

Previous Topic:Java-Code Style-Formatter only for *.java files or for *.xml files in Java projects as well?
Next Topic:org.eclipse.jdt.core_3.4.5.v_895_R34x.jar
Goto Forum:
  


Current Time: Tue Mar 18 10:44:21 EDT 2025

Powered by FUDForum. Page generated in 0.03313 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top