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
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, Differences.ValuePair
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
differing, matching, onlyOnLeft, onlyOnRight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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
Returns true if the two have any differences in their classifications, or false if the classifications are the same.boolean
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
-
Constructor Details
-
EntitySummaryDifferences
public EntitySummaryDifferences()
-
-
Method Details
-
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
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
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
-