Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Why MetamodelPackage.Literals.Type_Attribute...
Why MetamodelPackage.Literals.Type_Attribute... [message #922915] Tue, 25 September 2012 13:00 Go to next message
Markus Jo is currently offline Markus Jo
Messages: 83
Registered: January 2012
Member
Hi,
very short question.

Why should I use MetamodelPackage.Literals.Type_Attribute... instead of MetamodelPackage.eINSTANCE.getType_Attribute() ?

Is this faster ? More secure ? Better for my memory ?


Thx
Re: Why MetamodelPackage.Literals.Type_Attribute... [message #922947 is a reply to message #922915] Tue, 25 September 2012 13:27 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Markus,

Comments below.

On 25/09/2012 3:00 PM, Markus Jo wrote:
> Hi,
> very short question.
>
> Why should I use MetamodelPackage.Literals.Type_Attribute... instead
> of MetamodelPackage.eINSTANCE.getType_Attribute() ?
>
> Is this faster ?
Of course. One is a method call and the other is a constant.
> More secure ?
No.
> Better for my memory ?
No, for speed.
>
>
> Thx
Previous Topic:Before executing AddCommand check for duplicate EKey or run validation
Next Topic:Problem serializing EDataType
Goto Forum:
  


Current Time: Sat Sep 20 12:13:11 GMT 2014

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

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