Interface HasMutableComments

All Superinterfaces:
HasComments
All Known Subinterfaces:
MutableEntityExtended, MutableExternalEntity
All Known Implementing Classes:
MutableEntityExtendedImp, MutableExternalEntityImp

public interface HasMutableComments extends HasComments
Defines a mixin and abstracts an entity with comments.
  • Method Details

    • comments

      void comments(Collection<Comment> comments)
      Set the new collection of comments.
      Parameters:
      comments - new collection of comments
      See Also:
    • add

      void add(@NotNull @NotNull Comment comment)
      Adds a comment to the list of comments.
      Parameters:
      comment - comment to be added, cannot be null
    • remove

      void remove(@NotNull @NotNull Comment comment)
      Remove the given comment from the list of comments.
      Parameters:
      comment - comment to be removed, cannot be null
    • addComments

      default void addComments(@NotNull @NotNull Iterable<Comment> comments)
      Add a list of comments.
      Parameters:
      comments - comments to be added, cannot be null
      See Also: