| Modifier and Type | Field and Description |
|---|---|
| public static final NullNode | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | asText(String
The default value to return if this node's text value is absent. defaultValue)Overrides com. Returns the text value of this node or the provided |
| public String | asText()
Implements abstract com. Method that will return a valid String representation of
the container value, if the node is a value node
(method |
| public JsonToken | asToken()
Implements abstract com. Implements com. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. Equality for node objects is defined as full (deep) value equality. |
| public static NullNode | |
| public JsonNodeType | getNodeType()
Implements abstract com. Return the type of this node |
| public int | hashCode()
Implements abstract com. Returns a hash code value for this object. |
| protected Object | |
| public JsonNode | requireNonNull()
Overrides com. Method that may be called to verify that |
| public final void | serialize(JsonGenerator g, SerializerProvider provider)
Implements abstract com. Implements com. Method called to serialize node instances using given generator. |
| instance | back to summary |
|---|---|
| public static final NullNode instance | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| NullNode | back to summary |
|---|---|
| protected NullNode() Note visibility raised to `protected` in 2.9.3 to allow custom subtypes. | |
| asText | back to summary |
|---|---|
| public String asText(String defaultValue) Overrides com. Doc from com. Returns the text value of this node or the provided Note This was deprecated in 2.17.0, but as discussed through [databind#4471], was un-deprecated in 2.17.1. | |
| asText | back to summary |
|---|---|
| public String asText() Implements abstract com. Doc from com. Method that will return a valid String representation of
the container value, if the node is a value node
(method
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements abstract com. Implements com. Doc from com. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract com. Doc from com. Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. Note marked as abstract to ensure all implementation
classes define it properly and not rely on definition
from
| |
| getInstance | back to summary |
|---|---|
| public static NullNode getInstance() | |
| getNodeType | back to summary |
|---|---|
| public JsonNodeType getNodeType() Implements abstract com. Doc from com. Return the type of this node
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract com. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
| requireNonNull | back to summary |
|---|---|
| public JsonNode requireNonNull() Overrides com. Doc from com. Method that may be called to verify that
| |
| serialize | back to summary |
|---|---|
| public final void serialize(JsonGenerator g, SerializerProvider provider) throws IOException Implements abstract com. Implements com. Doc from com. Method called to serialize node instances using given generator.
| |