com.unboundid.util.json
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JSONNull extends JSONValue
null
in all
lowercase and without any quotation marks.Modifier and Type | Field and Description |
---|---|
static JSONNull |
NULL
A pre-allocated JSON null value object.
|
Constructor and Description |
---|
JSONNull()
Creates a new JSON value capable of representing a
null value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(JSONValue v,
boolean ignoreFieldNameCase,
boolean ignoreValueCase,
boolean ignoreArrayOrder)
Indicates whether this JSON value is considered equal to the provided JSON
value, subject to the specified constraints.
|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this JSON value.
|
int |
hashCode()
Retrieves a hash code for this JSON value.
|
java.lang.String |
toNormalizedString()
Retrieves a normalized string representation of this value.
|
void |
toNormalizedString(java.lang.StringBuilder buffer)
Appends a normalized string representation of this value to the provided
buffer.
|
java.lang.String |
toString()
Retrieves a string representation of this value as it should appear in a
JSON object, including any necessary quoting, escaping, etc.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this value (as it should appear in a
JSON object, including any necessary quoting, escaping, etc.) to the
provided buffer.
|
public JSONNull()
null
value.public int hashCode()
public boolean equals(java.lang.Object o)
public boolean equals(JSONValue v, boolean ignoreFieldNameCase, boolean ignoreValueCase, boolean ignoreArrayOrder)
equals
in class JSONValue
v
- The JSON value for which to make the
determination. It must not be null
.ignoreFieldNameCase
- Indicates whether to ignore differences in the
capitalization of JSON field names.ignoreValueCase
- Indicates whether to ignore differences in
the capitalization of JSON values that
represent strings.ignoreArrayOrder
- Indicates whether to ignore differences in the
order of elements in JSON arrays.true
if this JSON value is considered equal to the
provided JSON value (subject to the specified constraints), or
false
if not.public java.lang.String toString()
public void toString(java.lang.StringBuilder buffer)
public java.lang.String toNormalizedString()
toNormalizedString
in class JSONValue
public void toNormalizedString(java.lang.StringBuilder buffer)
toNormalizedString
in class JSONValue
buffer
- The buffer to which the information should be appended.