Difference methods on the DiffHelper class

Each line of business has its own subclass of DiffHelper. For example, for personal auto, the subclass is the PADiffHelper class. The PADiffHelper and other subclasses of DiffHelper, provide utility methods that can help you.

compareEffectiveDatedFields
Compare a field on the effective dated fields to a configurable graph depth as an argument. Effective dated fields is an object on the policy period. This object contains various fields that need to be effective dated. Those fields cannot be on the PolicyPeriod because PolicyPeriod is always the root of the graph and never is duplicated across effective time.
compareLineField
Compare a field on the line (passed as a String of the property name) to a configurable graph depth as an argument.
comparePolicyPeriodField
Compare a field on the line to a configurable graph depth as an argument.

For example, the compareLineField method compares a String property to a specific depth in the second argument.

diffItems.addAll(this.compareLineField("Vehicles", 3))

For advanced comparisons, you can use the methods on the DiffUtils class by accessing the DiffUtils property in the DiffHelper base class. The property is an instance of the DiffUtils class that is instantiated with the correct bean matcher.