Enum Class JsonNull

java.lang.Object
java.lang.Enum<JsonNull>
be.imgn.json.JsonNull
All Implemented Interfaces:
JsonValue, Serializable, Comparable<JsonNull>, Constable

public enum JsonNull extends Enum<JsonNull> implements JsonValue
The JSON null.
Since:
0.1.0
  • Enum Constant Details

    • INSTANCE

      public static final JsonNull INSTANCE
      The only null.
  • Method Details

    • values

      public static JsonNull[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JsonNull valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • type

      public JsonType type()
      Description copied from interface: JsonValue
      Returns the type of this value.
      Specified by:
      type in interface JsonValue
      Returns:
      the type
    • toString

      public String toString()
      Overrides:
      toString in class Enum<JsonNull>