Class ObjectAttributeChangeDetector


  • public class ObjectAttributeChangeDetector
    extends Object
    • 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 comparison
        newObject - the new object for the comparison
        Returns:
        the details of all changed fields as JSON string