You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alexander Landsnes Keül <Al...@visma.no> on 2008/10/20 17:01:46 UTC

Model equals/hashCode

Hi,

 

Is there any particular reason why Model doesn't implement a default equals(..) and hashCode() function? I have a very simple IDataProvider that simply wraps the returned object in a Model, and since I want to reuse the items I had to inline override the aforementioned functions.

 

Would it be possible to have those two functions implemented with a default in Model to just use the getObject().hashCode() and similar for equals for some future version? 

 

Alex