Class ComparisonResult


  • public class ComparisonResult
    extends java.lang.Object
    Class holds information about differences between reference object and particular compared objects referenceObjectId.
    • Field Detail

      • differentObjectsIds

        protected final java.util.Set<java.lang.Object> differentObjectsIds
      • differentGroups

        protected final java.util.Set<java.lang.String> differentGroups
      • groupAttributesByGroupNames

        protected final java.util.Map<java.lang.String,​java.util.List<CompareAttributeDescriptor>> groupAttributesByGroupNames
    • Method Detail

      • getObjectsWithDifferences

        @Deprecated(since="1811",
                    forRemoval=true)
        public java.util.Collection<java.lang.Object> getObjectsWithDifferences()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811. Please use getObjectsIdWithDifferences()
      • getObjectsIdWithDifferences

        public java.util.Collection<java.lang.Object> getObjectsIdWithDifferences()
        Returns:
        collection of the different object ids for referenceObjectId, otherwise empty collection
      • getReferenceObject

        @Deprecated(since="1811",
                    forRemoval=true)
        public java.lang.Object getReferenceObject()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811. Please use getReferenceObjectId()
      • getReferenceObjectId

        public java.lang.Object getReferenceObjectId()
      • getGroupsWithDifferences

        public java.util.Set<java.lang.String> getGroupsWithDifferences()
        Returns:
        collection of difference group for referenceObjectId, otherwise empty collection
      • merge

        public boolean merge​(ComparisonResult addition,
                             java.lang.Object comparedObjectId)
      • updateObjectsForAttributesDifferences

        protected void updateObjectsForAttributesDifferences​(ComparisonResult addition,
                                                             java.lang.Object comparedObjectId)
      • updateGroupsDifferences

        protected void updateGroupsDifferences​(ComparisonResult addition)
      • updateDifferentObjects

        protected void updateDifferentObjects()