Interface Comment


@NonExtendable @AvailableSince("0.6.0") public interface Comment
Represents a TOML comment. Also holds helper annotations for use in reflect serialization (@Comment.Pre, @Comment.Post, @Comment.Inline), not to be confused with the CommentPosition enum constants.
See Also:
  • Method Details

    • of

      @Contract("_, _ -> new") @NotNull static @NotNull Comment of(@NotNull @NotNull CommentPosition position, @NotNull @NotNull String content)
    • position

      @NotNull @NotNull CommentPosition position()
      Position of the comment
    • content

      @NotNull @NotNull String content()
      Raw text contained within the comment