[Glass] Question on Sets

Richard Sargent richard.sargent at gemtalksystems.com
Fri Apr 4 09:04:50 PDT 2014


SebastianHC wrote
> It is like defining the key fields,.. so to speak...?

I'll answer that with a cautious "yes". :-)

Your hash and equality should be based on invariant aspects, if possible. If
they depend on attributes that can vary, those attributes should not be
changed for any such object that is already in a hashed collection -
something that is pretty difficult to know.




--
View this message in context: http://forum.world.st/Glass-Question-on-Sets-tp4752784p4752791.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list