Class CustomObjectSyncUtils
- java.lang.Object
-
- com.commercetools.sync.customobjects.utils.CustomObjectSyncUtils
-
public class CustomObjectSyncUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CustomObjectSyncUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasIdenticalValue(io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode> oldCustomObject, io.sphere.sdk.customobjects.CustomObjectDraft<com.fasterxml.jackson.databind.JsonNode> newCustomObject)
Compares the value of aCustomObject
to the value of aCustomObjectDraft
.
-
-
-
Method Detail
-
hasIdenticalValue
public static boolean hasIdenticalValue(@Nonnull io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode> oldCustomObject, @Nonnull io.sphere.sdk.customobjects.CustomObjectDraft<com.fasterxml.jackson.databind.JsonNode> newCustomObject)
Compares the value of aCustomObject
to the value of aCustomObjectDraft
. It returns a boolean whether the values are identical or not.- Parameters:
oldCustomObject
- theCustomObject
which should be synced.newCustomObject
- theCustomObjectDraft
with the new data.- Returns:
- A boolean whether the value of the CustomObject and CustomObjectDraft is identical or not.
-
-