Class EntityProxyDifferences
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.EntityProxyDifferences
Capture the differences between EntityProxy 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkUniqueProperties
(InstanceProperties left, InstanceProperties right) Determine if there is a difference between the provided unique properties, and capture either each of those differences or the similarity.Returns the differences between unique properties of these instances, or null if there either are no unique properties on the instance or the unique 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 unique properties, or false if the unique 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
-
EntityProxyDifferences
public EntityProxyDifferences()
-
-
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
-
hasUniquePropertiesDifferences
public boolean hasUniquePropertiesDifferences()Returns true if the two have any differences in their unique properties, or false if the unique properties are the same.- Returns:
- boolean
-
getUniquePropertiesDifferences
Returns the differences between unique properties of these instances, or null if there either are no unique properties on the instance or the unique properties are the same on both instances.- Returns:
- InstancePropertiesDifferences
-
checkUniqueProperties
Determine if there is a difference between the provided unique properties, and capture either each of those differences or the similarity.- Parameters:
left
- the unique properties from the first instanceright
- the unique properties from the second instance
-