/** * Method for adding all child nodes of given Array, appending to * child nodes this array contains * * @param other Array to add contents from * * @return This node (to allow chaining) * * @since 1.3 */ public JsonNode addAll(ArrayNode other) { int len = other.size(); if (len > 0) { if (_children == null) { _children = new ArrayList<JsonNode>(len+2); } other.addContentsTo(_children); } return this; }
/** * Method for adding all child nodes of given Array, appending to * child nodes this array contains * * @param other Array to add contents from * * @return This node (to allow chaining) * * @since 1.3 */ public JsonNode addAll(ArrayNode other) { int len = other.size(); if (len > 0) { if (_children == null) { _children = new ArrayList<JsonNode>(len+2); } other.addContentsTo(_children); } return this; }
/** * Method for adding all child nodes of given Array, appending to * child nodes this array contains * * @param other Array to add contents from * * @return This node (to allow chaining) * * @since 1.3 */ public JsonNode addAll(ArrayNode other) { int len = other.size(); if (len > 0) { if (_children == null) { _children = new ArrayList<JsonNode>(len+2); } other.addContentsTo(_children); } return this; }
/** * Method for adding all child nodes of given Array, appending to * child nodes this array contains * * @param other Array to add contents from * * @return This node (to allow chaining) * * @since 1.3 */ public JsonNode addAll(ArrayNode other) { int len = other.size(); if (len > 0) { if (_children == null) { _children = new ArrayList<JsonNode>(len+2); } other.addContentsTo(_children); } return this; }
/** * Method for adding all child nodes of given Array, appending to * child nodes this array contains * * @param other Array to add contents from * * @return This node (to allow chaining) * * @since 1.3 */ public JsonNode addAll(ArrayNode other) { int len = other.size(); if (len > 0) { if (_children == null) { _children = new ArrayList<JsonNode>(len+2); } other.addContentsTo(_children); } return this; }