Package com._1c.g5.v8.dt.common
Class EMFCompareUtils.EqualityHelperEx
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
-
- org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
-
- com._1c.g5.v8.dt.common.EMFCompareUtils.EqualityHelperEx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
- Direct Known Subclasses:
ExtensionEqualityHelper
,TracedEqualityHelper
- Enclosing class:
- EMFCompareUtils
public static class EMFCompareUtils.EqualityHelperEx extends org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
EqualityHelper with ignoring features- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description EqualityHelperEx(org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
Creates a new form item equality helper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
haveEqualAttribute(org.eclipse.emf.ecore.EObject eObject1, org.eclipse.emf.ecore.EObject eObject2, org.eclipse.emf.ecore.EAttribute attribute)
protected boolean
haveEqualFeature(org.eclipse.emf.ecore.EObject eObject1, org.eclipse.emf.ecore.EObject eObject2, org.eclipse.emf.ecore.EStructuralFeature feature)
protected boolean
haveEqualReference(org.eclipse.emf.ecore.EObject eObject1, org.eclipse.emf.ecore.EObject eObject2, org.eclipse.emf.ecore.EReference reference)
EMFCompareUtils.EqualityHelperEx
ignoreFeatures(org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
Adds ignored EMF features to the set and returns thisprotected boolean
isExcludedFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Returnstrue
if the given feature should be ignored.-
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
equalFeatureMaps, equalFeatureMapValues, equals, equals, equalValues
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
ignoreFeatures
public EMFCompareUtils.EqualityHelperEx ignoreFeatures(org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
Adds ignored EMF features to the set and returns this- Parameters:
ignoredFeatures
- EMF features to be ignored- Returns:
- EqualityHelper instance, cannot be
null
-
haveEqualAttribute
protected boolean haveEqualAttribute(org.eclipse.emf.ecore.EObject eObject1, org.eclipse.emf.ecore.EObject eObject2, org.eclipse.emf.ecore.EAttribute attribute)
- Overrides:
haveEqualAttribute
in classorg.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
-
haveEqualFeature
protected boolean haveEqualFeature(org.eclipse.emf.ecore.EObject eObject1, org.eclipse.emf.ecore.EObject eObject2, org.eclipse.emf.ecore.EStructuralFeature feature)
- Overrides:
haveEqualFeature
in classorg.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
-
haveEqualReference
protected boolean haveEqualReference(org.eclipse.emf.ecore.EObject eObject1, org.eclipse.emf.ecore.EObject eObject2, org.eclipse.emf.ecore.EReference reference)
- Overrides:
haveEqualReference
in classorg.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
-
isExcludedFeature
protected boolean isExcludedFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Returnstrue
if the given feature should be ignored.- Parameters:
feature
- the feature, cannot benull
- Returns:
true
if the given feature should be ignored
-
-