Re: EO*Qualifier implements equals() but not hashcode()
Re: EO*Qualifier implements equals() but not hashcode()
- Subject: Re: EO*Qualifier implements equals() but not hashcode()
- From: Ray Kiddy <email@hidden>
- Date: Sat, 19 Jul 2014 16:06:50 -0700
On Fri, 18 Jul 2014 16:00:28 -0700
Ramsey Gurley <email@hidden> wrote:
> Just a note. ERXArrayUtilities.distinct doesn’t work on an array of
> EOOrQualifiers because the qualifier classes implement equals without
> implementing hashcode. sigh...
Just FYI, there is an extremely helpful HashCodeBuilder class that
makes it very easy to do the right thing here in the Commons Lang code.
It is new as of version 2.6, but that is what we have in ERJars.
We are often actually using ERXEOOrQualifier and such, yes?
I can look at it, but if anyone else gets to it first, more power to
ya.
- ray
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden