Class EntityDetailDifferences
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummaryDifferences
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailDifferences
Capture the differences between EntityDetail objects.
-
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
checkInstanceProperties
(InstanceProperties left, InstanceProperties right) Determine if there is a difference between the provided instance properties, and capture either each of those differences or the similarity.Returns the differences between instance properties of these instances, or null if there either are no instance properties on the instance or the instance properties are the same on both instances.boolean
Returns true if the two have any differences (are not equal), otherwise false.boolean
Returns true if the two have any differences in their instance properties, or false if the instance properties are the same.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummaryDifferences
checkClassifications, getClassificationDifferences, hasClassificationDifferences
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
-
EntityDetailDifferences
public EntityDetailDifferences()
-
-
Method Details
-
hasDifferences
public boolean hasDifferences()Returns true if the two have any differences (are not equal), otherwise false.- Overrides:
hasDifferences
in classEntitySummaryDifferences
- Returns:
- boolean
-
hasInstancePropertiesDifferences
public boolean hasInstancePropertiesDifferences()Returns true if the two have any differences in their instance properties, or false if the instance properties are the same.- Returns:
- boolean
-
getInstancePropertiesDifferences
Returns the differences between instance properties of these instances, or null if there either are no instance properties on the instance or the instance properties are the same on both instances.- Returns:
- InstancePropertiesDifferences
-
checkInstanceProperties
Determine if there is a difference between the provided instance properties, and capture either each of those differences or the similarity.- Parameters:
left
- the instance properties from the first instanceright
- the instance properties from the second instance
-