/** * Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object * node. In case of Object node, field names (keys) are not included, only values. For other types * of nodes, returns empty iterator. */ public Iterator<JsonNode> elements() { return EmptyIterator.instance(); }
/** * @return Iterator that can be used to traverse all key/value pairs for object nodes; empty * iterator (no contents) for other types */ public Iterator<Map.Entry<String, JsonNode>> fields() { return EmptyIterator.instance(); }
@Override public Iterator<String> fieldNames() { return EmptyIterator.instance(); }