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(com.commercetools.api.models.custom_object.CustomObject oldCustomObject, com.commercetools.api.models.custom_object.CustomObjectDraft newCustomObject)
Compares the value of aCustomObject
to the value of aCustomObjectDraft
.
-
-
-
Method Detail
-
hasIdenticalValue
public static boolean hasIdenticalValue(@Nonnull com.commercetools.api.models.custom_object.CustomObject oldCustomObject, @Nonnull com.commercetools.api.models.custom_object.CustomObjectDraft 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.
-
-