Package pro.taskana.common.internal.util
Class ObjectAttributeChangeDetector
- java.lang.Object
-
- pro.taskana.common.internal.util.ObjectAttributeChangeDetector
-
public class ObjectAttributeChangeDetector extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> StringdetermineChangesInAttributes(T oldObject, T newObject)Determines changes in fields between two objects.
-
-
-
Method Detail
-
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 comparisonnewObject- the new object for the comparison- Returns:
- the details of all changed fields as JSON string
-
-