| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| public static final BooleanNode | |
| private static final long | |
| public static final BooleanNode |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Boolean | _asBoolean()
Overrides tools. Method sub-classes should override if they can produce |
| protected String | _asString()
Overrides tools. Method sub-classes should override if they can produce |
| protected String | _valueDesc()
Implements abstract tools. Method for implementation classes to return a short description of contained value, to be used in error messages. |
| public final boolean | asBoolean()
Overrides tools. Method that will try to convert value of this node to a Java |
| public final boolean | asBoolean(boolean defaultValue)
Overrides tools. Similar to |
| public Optional | asBooleanOpt()
Overrides tools. Similar to |
| public JsonToken | asToken()
Implements abstract tools. Implements tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public boolean | booleanValue()
Overrides tools. Method that will try to access value of this node as a Java |
| public boolean | booleanValue(boolean defaultValue)
Overrides tools. Method similar to |
| public Optional | booleanValueOpt()
Overrides tools. Method similar to |
| public BooleanNode | deepCopy()
Overrides tools. All current value nodes are immutable, so we can just return them as is. |
| public boolean | equals(Object o)
Implements abstract tools. Equality for node objects is defined as full (deep) value equality. |
| public static BooleanNode | |
| public JsonNodeType | getNodeType()
Implements abstract tools. Return the type of this node |
| public static BooleanNode | |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| protected Object | |
| public final void | serialize(JsonGenerator g, SerializationContext provider)
Implements abstract tools. Implements tools. Method called to serialize node instances using given generator. |
| public static BooleanNode |
| _value | back to summary |
|---|---|
| private final boolean _value | |
| FALSE | back to summary |
|---|---|
| public static final BooleanNode FALSE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| TRUE | back to summary |
|---|---|
| public static final BooleanNode TRUE | |
| BooleanNode | back to summary |
|---|---|
| protected BooleanNode(boolean v) | |
| _asBoolean | back to summary |
|---|---|
| protected Boolean _asBoolean() Overrides tools. Doc from tools. Method sub-classes should override if they can produce
| |
| _asString | back to summary |
|---|---|
| protected String _asString() Overrides tools. Doc from tools. Method sub-classes should override if they can produce
| |
| _valueDesc | back to summary |
|---|---|
| protected String _valueDesc() Implements abstract tools. Doc from tools. Method for implementation classes to return a short description of contained value, to be used in error messages.
| |
| asBoolean | back to summary |
|---|---|
| public final boolean asBoolean() Overrides tools. Doc from tools. Method that will try to convert value of this node to a Java
| |
| asBoolean | back to summary |
|---|---|
| public final boolean asBoolean(boolean defaultValue) Overrides tools. Doc from tools. Similar to
| |
| asBooleanOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Similar to
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements abstract tools. Implements tools. Doc from tools. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| booleanValue | back to summary |
|---|---|
| public boolean booleanValue() Overrides tools. Doc from tools. Method that will try to access value of this node as a Java Note for more lenient conversions, use
| |
| booleanValue | back to summary |
|---|---|
| public boolean booleanValue(boolean defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| booleanValueOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| deepCopy | back to summary |
|---|---|
| public BooleanNode deepCopy() Overrides tools. Doc from tools. All current value nodes are immutable, so we can just return them as is.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract tools. Doc from tools. 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
| |
| getFalse | back to summary |
|---|---|
| public static BooleanNode getFalse() | |
| getNodeType | back to summary |
|---|---|
| public JsonNodeType getNodeType() Implements abstract tools. Doc from tools. Return the type of this node
| |
| getTrue | back to summary |
|---|---|
| public static BooleanNode getTrue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tools. 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() | |
| serialize | back to summary |
|---|---|
| public final void serialize(JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Implements tools. Doc from tools. Method called to serialize node instances using given generator.
| |
| valueOf | back to summary |
|---|---|
| public static BooleanNode valueOf(boolean b) | |