File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/main/java/com/fasterxml/jackson/databind Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1044,9 +1044,12 @@ public Set<Map.Entry<String, JsonNode>> properties() {
1044
1044
*/
1045
1045
1046
1046
/**
1047
- * Method for finding a JSON Object field with specified name in this
1047
+ * Method for finding the first JSON Object field with specified name in this
1048
1048
* node or its child nodes, and returning value it has.
1049
1049
* If no matching field is found in this node or its descendants, returns null.
1050
+ *<p>
1051
+ * Note that traversal is done in document order (that is, order in which
1052
+ * nodes are iterated if using {@link JsonNode#elements()})
1050
1053
*
1051
1054
* @param fieldName Name of field to look for
1052
1055
*
@@ -1055,8 +1058,10 @@ public Set<Map.Entry<String, JsonNode>> properties() {
1055
1058
public abstract JsonNode findValue (String fieldName );
1056
1059
1057
1060
/**
1058
- * Method for finding JSON Object fields with specified name, and returning
1059
- * found ones as a List. Note that sub-tree search ends if a field is found,
1061
+ * Method for finding JSON Object fields with specified name -- both immediate
1062
+ * child values and descendants -- and returning
1063
+ * found ones as a {@link List}.
1064
+ * Note that sub-tree search ends when matching field is found,
1060
1065
* so possible children of result nodes are <b>not</b> included.
1061
1066
* If no matching fields are found in this node or its descendants, returns
1062
1067
* an empty List.
You can’t perform that action at this time.
0 commit comments