Interface JSONNode
-
- All Known Subinterfaces:
JSONArray,JSONObject
public interface JSONNodeRepresents aJSONObjectorJSONArrayin a JSON document.- Author:
- cdivilly
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceJSONNode.BuilderAbstract interface implemented by all builders that buildJSONNodeinstancesstatic classJSONNode.TypeThe type of node in the object hierarchy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEmpty()Indicates if this node has any child elementsintsize()The number of child elements in this nodeJSONNode.Typetype()The type ofJSONNode
-
-
-
Method Detail
-
size
int size()
The number of child elements in this node- Returns:
- The number of child elements of this node
-
isEmpty
boolean isEmpty()
Indicates if this node has any child elements- Returns:
- true if the node has 1 or more child elements, false otherwise
-
type
JSONNode.Type type()
The type ofJSONNode- Returns:
JSONNode.TypeofJSONNode
-
-