Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 22 18:58:08 EDT 2025

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

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

Back to the top