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()
boolean
equals(java.lang.Object o)
JsonNode
get(int index)
JsonNode
get(java.lang.String fieldName)
int
hashCode()
boolean
isArray()
boolean
isContainerNode()
int
size()
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isContainerNode
public boolean isContainerNode()
- Overrides:
isContainerNode
in classJsonNode
- Returns:
true
iff this node is a container node (array or object).
-
-