Class EMFCompareUtils.EqualityHelperEx

    • Constructor Detail

      • EqualityHelperEx

        public EqualityHelperEx​(org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
        Creates a new form item equality helper.
        Parameters:
        ignoredFeatures - EMF features to be ignored, can be null
      • EqualityHelperEx

        public EqualityHelperEx​(Optional<BiPredicate<org.eclipse.emf.ecore.EObject,​org.eclipse.emf.ecore.EStructuralFeature>> isDefault,
                                org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
        Creates a new form item equality helper.
        Parameters:
        isDefault - the optional predicate to check whether the feature value is default, cannot be null
        ignoredFeatures - EMF features to be ignored, can be null
    • 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 class org.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 class org.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 class org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
      • isExcludedFeature

        protected boolean isExcludedFeature​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Returns true if the given feature should be ignored.
        Parameters:
        feature - the feature, cannot be null
        Returns:
        true if the given feature should be ignored