public final class JsonNull extends Object implements JsonValue
null
in JSON.JsonValue.EntityType
Modifier and Type | Field and Description |
---|---|
static JsonNull |
NULL
The singleton instance that represents
null in JSON. |
Modifier and Type | Method and Description |
---|---|
JsonNull |
asJsonNull()
Returns this value as
JsonNull . |
boolean |
equals(Object otherObject)
Compares the specified object with this JSON
null for equality. |
JsonValue.EntityType |
getEntityType()
Returns
JsonValue.EntityType.NULL , which is the entity type of JsonNull . |
int |
hashCode()
Returns the hash code value for this JSON
null . |
static JsonNull |
of()
Returns the singleton instance of
JsonNull . |
int |
presumeReferenceSizeInBytes()
|
String |
toJson()
Returns the stringified JSON representation of this JSON
null . |
Value |
toMsgpack()
Deprecated.
Do not use this method. It is to be removed at some point after Embulk v1.0.0.
It is here only to ensure a migration period from MessagePack-based JSON values to new
JSON values of
JsonValue . |
String |
toString()
Returns the string representation of this JSON
null . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asJsonArray, asJsonBoolean, asJsonDouble, asJsonLong, asJsonObject, asJsonString, fromMsgpack, isJsonArray, isJsonBoolean, isJsonDouble, isJsonLong, isJsonNull, isJsonObject, isJsonString
public static final JsonNull NULL
null
in JSON.public static JsonNull of()
JsonNull
.JsonNull
public JsonValue.EntityType getEntityType()
JsonValue.EntityType.NULL
, which is the entity type of JsonNull
.getEntityType
in interface JsonValue
JsonValue.EntityType.NULL
, which is the entity type of JsonNull
public JsonNull asJsonNull()
JsonNull
.asJsonNull
in interface JsonValue
JsonNull
public int presumeReferenceSizeInBytes()
1
for the size of null
in bytes presumed to occupy in Page
as a reference.
This approximate size is used only as a threshold whether PageBuilder
is flushed, or not.
It is not accurate, it does not need to be accurate, and it is impossible in general to tell an accurate size that
a Java object occupies in the Java heap. But, a reasonable approximate would help to keep Page
performant in the Java heap.
It is better to flush more frequently for bigger JSON value objects, less often for smaller JSON value objects, but no infinite accumulation even for empty JSON value objects.
presumeReferenceSizeInBytes
in interface JsonValue
1
public String toJson()
null
.@Deprecated public Value toMsgpack()
JsonValue
.null
.toMsgpack
in interface JsonValue
null
public String toString()
null
.public boolean equals(Object otherObject)
null
for equality.