| 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 defaultValue)
Overrides com. asText(), except that it will return
defaultValue in cases where null value would be returned;
either for missing nodes (trying to access missing property, or element
at invalid item for array) or explicit nulls.
|
| public String | asText()
Implements abstract com. isValueNode returns true),
otherwise empty String.
|
| public JsonToken | asToken()
Implements abstract com. Implements com. |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. |
| public static NullNode | |
| public JsonNodeType | getNodeType()
Implements abstract com. |
| public int | hashCode()
Implements abstract com. |
| protected Object | |
| public JsonNode | requireNonNull()
Overrides com. this node is neither so-called
"missing node" (that is, one for which isMissingNode() returns true)
nor "null node" (one for which isNull() returns true).
|
| public final void | serialize(JsonGenerator g, SerializerProvider provider)
Implements abstract com. Implements com. |
| 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. Method similar to
| |
| 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 the 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.
| |