RecursiveComparisonIntrospectionStrategy that introspects properties by looking at public getters like
getName() or isActive()/getActive() for boolean properties.
| Modifier and Type | Field and Description |
|---|---|
| public static final ComparingProperties | |
| private static final String | |
| private static final String | |
| 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. |
| pack-priv static Set | |
| public static Set | |
| private static Set | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static String |
| COMPARING_PROPERTIES | back to summary |
|---|---|
| public static final ComparingProperties COMPARING_PROPERTIES | |
| GET_PREFIX | back to summary |
|---|---|
| private static final String GET_PREFIX | |
| IS_PREFIX | back to summary |
|---|---|
| private static final String IS_PREFIX | |
| propertiesNamesPerClass | back to summary |
|---|---|
| private final Map<Class<?>, Set<String>> propertiesNamesPerClass | |
| ComparingProperties | back to summary |
|---|---|
| public ComparingProperties() | |
| 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 | |
| getPropertiesNamesOf | back to summary |
|---|---|
| pack-priv static Set | |
| gettersIncludingInheritedOf | back to summary |
|---|---|
| public static Set | |
| gettersOf | back to summary |
|---|---|
| private static Set | |
| hasParameters | back to summary |
|---|---|
| private static boolean hasParameters(Method method) | |
| isBooleanProperty | back to summary |
|---|---|
| private static boolean isBooleanProperty(Method method) | |
| isGetter | back to summary |
|---|---|
| private static boolean isGetter(Method method) | |
| isRegularGetter | back to summary |
|---|---|
| private static boolean isRegularGetter(Method method) | |
| isStatic | back to summary |
|---|---|
| private static boolean isStatic(Method method) | |
| toPropertyName | back to summary |
|---|---|
| private static String toPropertyName(String methodName) | |