public class GrammarElementDeclarationOrder
extends org.eclipse.emf.common.notify.impl.AdapterImpl
implements java.util.Comparator<org.eclipse.emf.ecore.EObject>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.Integer> |
elementIDCache |
Modifier | Constructor and Description |
---|---|
protected |
GrammarElementDeclarationOrder(Grammar grammar) |
Modifier and Type | Method and 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) |
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget
protected java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.Integer> elementIDCache
protected GrammarElementDeclarationOrder(Grammar grammar)
public static GrammarElementDeclarationOrder get(Grammar grammar)
public int compare(org.eclipse.emf.ecore.EObject o1, org.eclipse.emf.ecore.EObject o2)
compare
in interface java.util.Comparator<org.eclipse.emf.ecore.EObject>
public int getElementID(org.eclipse.emf.ecore.EObject ele)
public <T> java.util.Comparator<T> toComparator(com.google.common.base.Function<T,org.eclipse.emf.ecore.EObject> elementAccess)