RecursiveComparisonIntrospectionStrategy that introspects fields including inherited ones but ignores static and
synthetic fields.
| Modifier and Type | Field and Description |
|---|---|
| public static final ComparingFields | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getChildNodeValue(String
the child node identifier childNodeName, Object the object to read the child node from instance)Implements org. |
| public Set | getChildrenNodeNamesOf(Object
the object to get the child nodes from node)Implements org. |
| public String | getDescription()
Overrides default org. |
| COMPARING_FIELDS | back to summary |
|---|---|
| public static final ComparingFields COMPARING_FIELDS | |
| fieldNamesPerClass | back to summary |
|---|---|
| private final Map<Class<?>, Set<String>> fieldNamesPerClass | |
| ComparingFields | back to summary |
|---|---|
| public ComparingFields() | |
| getChildNodeValue | back to summary |
|---|---|
| public Object getChildNodeValue(String childNodeName, Object instance) Implements org. Doc from org. Returns the value of the given object child node, the child node being identified by the childNodeName parameter. It's the implementor choice how to resolve the child node value, a typical implementation consists of considering childNodeName to be a field name and then use introspection to read the field value, but if the object is a Map the implementation could consider the child node name to be a key of the map. | |
| getChildrenNodeNamesOf | back to summary |
|---|---|
| public Set Implements org. Returns the names of the children nodes of the given object that will be used in the recursive comparison. A typical implementation could look at the object fields or properties. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Overrides default org. Doc from org. Returns a human-readable description of the strategy to be used in error messages.
The default implementation returns | |