Skip to main content


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 JoFriend
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 MerksFriend
Messages: 33137
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Before executing AddCommand check for duplicate EKey or run validation
Next Topic:Problem serializing EDataType
Goto Forum:
  


Current Time: Fri Apr 19 10:08:18 GMT 2024

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

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

Back to the top