|
Re: using Set classes for unique reference lists [message #418899 is a reply to message #418894] |
Thu, 01 May 2008 11:39 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Gary,
Comments below.
gary wrote:
> Dear All
>
> I have some references in my model which for reasons of compatability
> need to accept sets and returns sets in their get and set methods. Now
> this fits with setting multiplicity to many 0..* and setting the
> unique attribute. However, emf uses a UniqueElist instead of a Set
> class so is there a way to get a Set instead
> my thoughts were either 1. wrapping a EUnique list in the JET output
> scripts
> 2. replacing EUnique list and its subclasses by a Set implimentation'
This is https://bugs.eclipse.org/bugs/show_bug.cgi?id=75931. It would
be easy to extend the list to implement set (as you can see in the
bugzilla's discussion) but the equality implementation would be odd.
Perhaps no one would notice and you could certainly override that as well...
>
> any thoughts and suggestions re welcome
>
> regards
> gary
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03424 seconds