Class EntitySummaryDifferences

  • Direct Known Subclasses:
    EntityDetailDifferences, EntityProxyDifferences

    public class EntitySummaryDifferences
    extends Differences
    Capture the differences between EntitySummary objects. Within this object there are the following distinct areas for which differences are identified:
    • ClassificationDifferences - list the differences in classifications, irrespective of the ordering of the classifications.
    • Constructor Detail

      • EntitySummaryDifferences

        public EntitySummaryDifferences()
    • Method Detail

      • hasDifferences

        public boolean hasDifferences()
        Returns true if the two have any differences (are not equal), otherwise false.
        Overrides:
        hasDifferences in class Differences
        Returns:
        boolean
      • hasClassificationDifferences

        public boolean hasClassificationDifferences()
        Returns true if the two have any differences in their classifications, or false if the classifications are the same.
        Returns:
        boolean
      • getClassificationDifferences

        public ClassificationDifferences getClassificationDifferences()
        Returns the differences between classifications of these instances, or null if there are either no classifications on the instance or the classifications are the same on both instances.
        Returns:
        ClassificationDifferences
      • checkClassifications

        public void checkClassifications​(EntitySummary left,
                                         EntitySummary right)
        Determine if there is any difference between the provided classifications, and capture either each of those differences or the similarity. Note that the differences will be calculated ignoring the order in which the classifications are listed for each side.
        Parameters:
        left - the classifications from the first instance
        right - the classifications from the second instance