Class CustomObjectSyncUtils


  • public class CustomObjectSyncUtils
    extends java.lang.Object
    • 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 a CustomObject to the value of a CustomObjectDraft.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomObjectSyncUtils

        public CustomObjectSyncUtils()
    • 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 a CustomObject to the value of a CustomObjectDraft. It returns a boolean whether the values are identical or not.
        Parameters:
        oldCustomObject - the CustomObject which should be synced.
        newCustomObject - the CustomObjectDraft with the new data.
        Returns:
        A boolean whether the value of the CustomObject and CustomObjectDraft is identical or not.