Class GrammarElementDeclarationOrder

  • All Implemented Interfaces:
    java.util.Comparator<org.eclipse.emf.ecore.EObject>, org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

    public class GrammarElementDeclarationOrder
    extends org.eclipse.emf.common.notify.impl.AdapterImpl
    implements java.util.Comparator<org.eclipse.emf.ecore.EObject>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter

        org.eclipse.emf.common.notify.Adapter.Internal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<org.eclipse.emf.ecore.EObject,​java.lang.Integer> elementIDCache  
      • Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl

        target
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(org.eclipse.emf.ecore.EObject o1, org.eclipse.emf.ecore.EObject o2)  
      static GrammarElementDeclarationOrder get​(Grammar grammar)  
      int getElementID​(org.eclipse.emf.ecore.EObject ele)  
      <T> java.util.Comparator<T> toComparator​(com.google.common.base.Function<T,​org.eclipse.emf.ecore.EObject> elementAccess)  
      • Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl

        getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • elementIDCache

        protected java.util.Map<org.eclipse.emf.ecore.EObject,​java.lang.Integer> elementIDCache
    • Constructor Detail

      • GrammarElementDeclarationOrder

        protected GrammarElementDeclarationOrder​(Grammar grammar)
    • Method Detail

      • compare

        public int compare​(org.eclipse.emf.ecore.EObject o1,
                           org.eclipse.emf.ecore.EObject o2)
        Specified by:
        compare in interface java.util.Comparator<org.eclipse.emf.ecore.EObject>
      • getElementID

        public int getElementID​(org.eclipse.emf.ecore.EObject ele)
      • toComparator

        public <T> java.util.Comparator<T> toComparator​(com.google.common.base.Function<T,​org.eclipse.emf.ecore.EObject> elementAccess)