Annotation Interface ObjectDiffProperty
Annotation to be used on property getters in order to configure if and how they should be treated during
object comparison.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Categories will be passed along with the object node and can be used for advanced filtering of specific property groups.booleanCauses theDiffersto compare the object by using theObject.equals(Object)method instead of introspection.Can be used in conjunction withequalsOnly()to name a method on the object that provides the value to compare via equals.booleanDeprecated.Please use inclusion() instead.
-
Element Details
-
excluded
Deprecated.Please use inclusion() instead. When used in conjunction with inclusion(), the latter one will win over excluded().Causes theDiffersto skip the marked property and all its children.- Returns:
trueif the property should be ignored.
- Default:
- false
-
inclusion
Inclusion inclusion- Default:
- DEFAULT
-
equalsOnly
boolean equalsOnlyCauses theDiffersto compare the object by using theObject.equals(Object)method instead of introspection.- Returns:
trueif the property should be compared viaObject.equals(Object).
- Default:
- false
-
categories
String[] categoriesCategories will be passed along with the object node and can be used for advanced filtering of specific property groups.- Returns:
- The categories for this property.
- Default:
- {}
-
equalsOnlyValueProviderMethod
String equalsOnlyValueProviderMethodCan be used in conjunction withequalsOnly()to name a method on the object that provides the value to compare via equals.- Returns:
- The method returning the object to use for the equals check.
- Default:
- ""
-