Class EntitySummaryDifferences
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
Differences.SidePresent
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
differing, matching, onlyOnLeft, onlyOnRight
-
-
Constructor Summary
Constructors Constructor Description EntitySummaryDifferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.boolean
hasClassificationDifferences()
Returns true if the two have any differences in their classifications, or false if the classifications are the same.boolean
hasDifferences()
Returns true if the two have any differences (are not equal), otherwise false.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
addDiffering, addMatching, addOnlyOnOneSide, check, getLeftValue, getNames, getOnlyOnLeft, getOnlyOnRight, getRightValue, isDifferent
-
-
-
-
Method Detail
-
hasDifferences
public boolean hasDifferences()
Returns true if the two have any differences (are not equal), otherwise false.- Overrides:
hasDifferences
in classDifferences
- 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 instanceright
- the classifications from the second instance
-
-