Package io.micronaut.json.tree
Class JsonObject
- java.lang.Object
-
- io.micronaut.json.tree.JsonNode
-
- io.micronaut.json.tree.JsonObject
-
@Internal public class JsonObject extends JsonNode
Public to allow special handling for conversion service. UseJsonNode.isObject()
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
isContainerNode()
boolean
isObject()
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, isArray, isBoolean, isNull, isNumber, isString, isValueNode, nullNode
-
-
-
-
Method Detail
-
size
public int size()
-
isObject
public boolean isObject()
-
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).
-
-