Package io.micronaut.json.tree
Class JsonArray
- java.lang.Object
-
- io.micronaut.json.tree.JsonNode
-
- io.micronaut.json.tree.JsonArray
-
@Internal public class JsonArray extends JsonNode
Public to allow special handling for conversion service. UseJsonNode.isArray()to distinguish nodes.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<java.util.Map.Entry<java.lang.String,JsonNode>>entries()booleanequals(java.lang.Object o)JsonNodeget(int index)JsonNodeget(java.lang.String fieldName)inthashCode()booleanisArray()booleanisContainerNode()intsize()java.lang.Iterable<JsonNode>values()-
Methods inherited from class io.micronaut.json.tree.JsonNode
coerceStringValue, createArrayNode, createBooleanNode, createNumberNode, createNumberNode, createNumberNode, createNumberNode, createNumberNode, createNumberNode, createNumberNodeImpl, createObjectNode, createStringNode, getBigDecimalValue, getBigIntegerValue, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberValue, getStringValue, isBoolean, isNull, isNumber, isObject, isString, isValueNode, nullNode
-
-
-
-
Method Detail
-
size
public int size()
-
isArray
public boolean isArray()
-
get
public JsonNode get(@NonNull java.lang.String fieldName)
-
get
public JsonNode get(int index)
-
values
@NonNull public java.lang.Iterable<JsonNode> values()
-
entries
@NonNull public java.lang.Iterable<java.util.Map.Entry<java.lang.String,JsonNode>> entries()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isContainerNode
public boolean isContainerNode()
- Overrides:
isContainerNodein classJsonNode- Returns:
trueiff this node is a container node (array or object).
-
-