Package jsonvalues

Class JsNull

  • All Implemented Interfaces:
    JsValue

    public final class JsNull
    extends Object
    implements JsValue
    Represents null, which a valid json value. It's a singleton, only the instance JsNull.NULL exists.
    • Method Detail

      • id

        public int id()
        Specified by:
        id in interface JsValue
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface JsValue
        Returns:
        true if this element is null
      • hashCode

        public int hashCode()
        Returns the hashcode of this json null
        Overrides:
        hashCode in class Object
        Returns:
        1
      • equals

        public boolean equals​(Object that)
        Returns true if that is the singleton NULL.
        Overrides:
        equals in class Object
        Parameters:
        that - the reference object with which to compare.
        Returns:
        true if that is NULL