Package pro.taskana.common.internal.util
Class ObjectAttributeChangeDetector
java.lang.Object
pro.taskana.common.internal.util.ObjectAttributeChangeDetector
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> StringdetermineChangesInAttributes(T oldObject, T newObject) Determines changes in fields between two objects.
-
Method Details
-
determineChangesInAttributes
Determines changes in fields between two objects.- Type Parameters:
T- The generic type parameter- Parameters:
oldObject- the old object for the comparisonnewObject- 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
-