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 09: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 09:27 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25746
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 Apr 19 11:53:00 EDT 2014

Powered by FUDForum. Page generated in 0.02382 seconds