Class ZsonValue

java.lang.Object
dev.nolij.zson.ZsonValue

public final class ZsonValue extends Object
Represents a value in a JSON-like structure. Most methods in this class delegate to the underlying value.
  • Field Details

    • NO_COMMENT

      public static final String NO_COMMENT
      The value for comment when there is no comment, represented as the null character.
      See Also:
    • comment

      @NotNull public @NotNull String comment
      The comment for this value. If the comment is NO_COMMENT, then there is no comment.
    • value

      @Nullable public @Nullable Object value
      The underlying value.
    • format

      @NotNull public @NotNull String format
  • Constructor Details

    • ZsonValue

      public ZsonValue(@NotNull @NotNull String comment, @Nullable @Nullable Object value, @NotNull @NotNull String format)
    • ZsonValue

      public ZsonValue(@NotNull @NotNull String comment, @Nullable @Nullable Object value)
    • ZsonValue

      public ZsonValue(@Nullable @Nullable Object value)
  • Method Details