Class JsonNull

  • All Implemented Interfaces:
    java.io.Serializable

    public final class JsonNull
    extends JsonValueBase
    implements java.io.Serializable
    Represents NULL value in JSON standards
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonNull()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Checks if the obj is equal to JSONNull object.
      java.lang.String toJson()
      Gets the string representation of the JsonValueBase.
      java.lang.String toString()
      String representation of JSON Null object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JsonNull

        public JsonNull()
        Default constructor.
    • Method Detail

      • toString

        public java.lang.String toString()
        String representation of JSON Null object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation of json null.
      • toJson

        public java.lang.String toJson()
        Gets the string representation of the JsonValueBase.
        Overrides:
        toJson in class JsonValueBase
        Returns:
        The string representation of the JsonValueBase.
      • equals

        public boolean equals​(java.lang.Object obj)
        Checks if the obj is equal to JSONNull object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - Object to be compared.
        Returns:
        True if obj is JSONNull otherwise false.