Class JsonNull

java.lang.Object
net.luis.utils.io.data.json.JsonNull
All Implemented Interfaces:
JsonElement

@Singleton public final class JsonNull extends Object implements JsonElement
Represents a json null value.
This class is a singleton.
  • Field Details

    • INSTANCE

      public static final JsonNull INSTANCE
      The singleton instance of JsonNull.
      This instance is immutable and can be used for all null values.
  • Constructor Details

    • JsonNull

      private JsonNull()
      Constructs a new json null.
      Should not be used, use INSTANCE instead.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      @NotNull public @NotNull String toString(@Nullable @Nullable JsonConfig config)
      Description copied from interface: JsonElement
      Returns a string representation of this json element based on the given json config.
      The json config specifies how the json element should be formatted.
      Specified by:
      toString in interface JsonElement
      Parameters:
      config - The json config to use
      Returns:
      The string representation of this json element