Equality works as Thomas mentioned, so one basic question leaps to
mind: Why are you comparing EntityProxys from different contexts or
with different stableIds?  Maybe there is a more centralized way you
could manage those EntityProxys so that you are not dispersing them in
various states/contexts across your app.


On Nov 14, 12:09 am, Hilco Wijbenga <[email protected]> wrote:
> Hi all,
>
> I was trying to check the presence of an EntityProxy in a
> Set<EntityProxy> [i.e. set.contains(proxy)]. This returned false even
> though the proxy was an element of the set. As it turns out
> EntityProxy.equals() doesn't work, or, more precisly, it seems to
> behave as the default equals() and check reference equality instead of
> value equality.
>
> So how do I get a working value checking equals? Without it,
> Set<EntityProxy> is just about useless. I didn't see anything relevant
> in [1] and Google was no help either. (I did find a similar question
> but it went unanswered.)
>
> Cheers,
> Hilco
>
> [1]http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to