Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Why does ECollections.singletonEList return a List<T> instead of EList<T>?
Why does ECollections.singletonEList return a List<T> instead of EList<T>? [message #989504] Thu, 06 December 2012 14:28 Go to next message
Lars Briem is currently offline Lars Briem
Messages: 20
Registered: June 2011
Junior Member
Hello,

Like the title says in EMF 2.7.0 ECollections.singletonEList() returns a List<T>. I wondered about this, because every other method in this class returns an EList or EMap.

Is this just a bug or is there a reason why this method returns a normal List?

Here is a link to the 2.7.0 Javadoc:
http://download.eclipse.org/modeling/emf/emf/javadoc/2.7.0/org/eclipse/emf/common/util/ECollections.html#singletonEList%28T%29
Re: Why does ECollections.singletonEList return a List&lt;T&gt; instead of EList&lt;T&am [message #989638 is a reply to message #989504] Fri, 07 December 2012 06:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26087
Registered: July 2009
Senior Member
Lars,

Sorry, it was a dumb mistake. I changed it in 2.8.

On 06/12/2012 3:28 PM, Lars Briem wrote:
> Hello,
>
> Like the title says in EMF 2.7.0 ECollections.singletonEList() returns
> a List<T>. I wondered about this, because every other method in this
> class returns an EList or EMap.
>
> Is this just a bug or is there a reason why this method returns a
> normal List?
>
> Here is a link to the 2.7.0 Javadoc:
> http://download.eclipse.org/modeling/emf/emf/javadoc/2.7.0/org/eclipse/emf/common/util/ECollections.html#singletonEList%28T%29
>
Re: Why does ECollections.singletonEList return a List&lt;T&gt; instead of EList&lt;T&am [message #989650 is a reply to message #989638] Fri, 07 December 2012 08:15 Go to previous message
Lars Briem is currently offline Lars Briem
Messages: 20
Registered: June 2011
Junior Member
Hello Ed,

Thank you for the fast reply and the bug fix.
Previous Topic:ModelBus Installation Issues
Next Topic:EContentAdapter vs Listening to commands
Goto Forum:
  


Current Time: Wed Oct 01 00:08:19 GMT 2014

Powered by FUDForum. Page generated in 0.02379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software