Package oracle.nosql.driver.values
Class JsonNullValue
- java.lang.Object
-
- oracle.nosql.driver.values.FieldValue
-
- oracle.nosql.driver.values.JsonNullValue
-
- All Implemented Interfaces:
java.lang.Comparable<FieldValue>
public class JsonNullValue extends FieldValue
AFieldValue
instance representing an explicit JSON null value in a JSON object or array. On input this type can only be used in a table field of type JSON. This is an immutable singleton object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class oracle.nosql.driver.values.FieldValue
FieldValue.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FieldValue other)
boolean
equals(java.lang.Object other)
static JsonNullValue
getInstance()
Returns an instance (singleton) of JsonNullValue.FieldValue.Type
getType()
Returns the type of the objectint
hashCode()
java.lang.String
toJson(JsonOptions options)
Returns a JSON representation of the value using the options, if specified.-
Methods inherited from class oracle.nosql.driver.values.FieldValue
asArray, asBinary, asBoolean, asDouble, asInteger, asJsonNull, asLong, asMap, asNull, asNumber, asString, asTimestamp, castAsDouble, createFromJson, createFromJson, createFromJson, getBinary, getBoolean, getDouble, getInt, getLong, getNumber, getSerializedSize, getString, getTimestamp, isAtomic, isJsonNull, isNull, isNumeric, toJson, toString
-
-
-
-
Method Detail
-
getType
public FieldValue.Type getType()
Description copied from class:FieldValue
Returns the type of the object- Specified by:
getType
in classFieldValue
- Returns:
- the type
-
getInstance
public static JsonNullValue getInstance()
Returns an instance (singleton) of JsonNullValue.- Returns:
- the value
-
compareTo
public int compareTo(FieldValue other)
-
toJson
public java.lang.String toJson(JsonOptions options)
Description copied from class:FieldValue
Returns a JSON representation of the value using the options, if specified.- Overrides:
toJson
in classFieldValue
- Parameters:
options
- configurable options used to affect the JSON output format of some data types. May be null.- Returns:
- the JSON representation of this value.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-