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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic @interfaceAnnotation for use inreflect serialization.static @interfaceAnnotation for use inreflect serialization.static @interfaceAnnotation for use inreflect serialization. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcontent()Raw text contained within the commentstatic @NotNull Commentof(@NotNull CommentPosition position, @NotNull String content) @NotNull CommentPositionposition()Position of the comment
-
Method Details
-
of
@Contract("_, _ -> new") @NotNull static @NotNull Comment of(@NotNull @NotNull CommentPosition position, @NotNull @NotNull String content) -
position
Position of the comment -
content
Raw text contained within the comment
-