Class ObjectAttributeChangeDetector

java.lang.Object
pro.taskana.common.internal.util.ObjectAttributeChangeDetector

public class ObjectAttributeChangeDetector extends Object
  • Method Details

    • determineChangesInAttributes

      public static <T> String determineChangesInAttributes(T oldObject, T newObject)
      Determines changes in fields between two objects.
      Type Parameters:
      T - The generic type parameter
      Parameters:
      oldObject - the old object for the comparison
      newObject - the new object for the comparison
      Returns:
      the details of all changed fields as JSON string
      Throws:
      SystemException - when any parameter is null or the class of oldObject and newObject do not match